playMaker

Author Topic: PM action for? "VREvent_TrackedDeviceUserInteractionStarted"  (Read 2144 times)

kavery

  • Full Member
  • ***
  • Posts: 149
This seems to be the best method for detecting moments of engagement or disengagement. Is there currently a way to do this with PM, or would a custom action be needed?

VREvent_TrackedDeviceUserInteractionStarted

VREvent_TrackedDeviceUserInteractionEnded

There is also:
In Unity using the OpenVR plugin, the function to check is: OpenVR.System.GetTrackedDeviceActivityLevel(0)
« Last Edit: May 23, 2018, 04:29:37 PM by kavery »

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: PM action for? "VREvent_TrackedDeviceUserInteractionStarted"
« Reply #1 on: May 23, 2018, 10:48:24 PM »
Are you using a set of custom actions already for VR?

If so, which set?

kavery

  • Full Member
  • ***
  • Posts: 149
Re: PM action for? "VREvent_TrackedDeviceUserInteractionStarted"
« Reply #2 on: May 24, 2018, 02:09:18 PM »
Good question. The solution may lie in a purchased asset. I've been trying to get ugs to work but I keep getting errors like this and can't get ahold of the author.

 Assets/ugamesoft/Playmaker/VR2.0/GetRefreshRate.cs(42,33): error CS0619: `UnityEngine.VR.VRDevice' is obsolete: `VRDevice has been moved and renamed.  Use UnityEngine.XR.XRDevice instead (UnityUpgradable) -> UnityEngine.XR.XRDevice'

Is there another tool set you reccommend?

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: PM action for? "VREvent_TrackedDeviceUserInteractionStarted"
« Reply #3 on: May 24, 2018, 11:46:33 PM »
VRTK is pretty robust, and I have created a few hundred actions for it. It runs on steam VR (which is built on top of open VR as I understand it).

Here is the getting started guide from my channel:

kavery

  • Full Member
  • ***
  • Posts: 149
Re: PM action for? "VREvent_TrackedDeviceUserInteractionStarted"
« Reply #4 on: May 25, 2018, 02:24:50 PM »
Looks terrific. We could use a lot of those functions.