Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: kavery on May 23, 2018, 04:23:34 PM

Title: PM action for? "VREvent_TrackedDeviceUserInteractionStarted"
Post by: kavery on May 23, 2018, 04:23:34 PM
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)
Title: Re: PM action for? "VREvent_TrackedDeviceUserInteractionStarted"
Post by: tcmeric on May 23, 2018, 10:48:24 PM
Are you using a set of custom actions already for VR?

If so, which set?
Title: Re: PM action for? "VREvent_TrackedDeviceUserInteractionStarted"
Post by: kavery 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?
Title: Re: PM action for? "VREvent_TrackedDeviceUserInteractionStarted"
Post by: tcmeric 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:
Title: Re: PM action for? "VREvent_TrackedDeviceUserInteractionStarted"
Post by: kavery on May 25, 2018, 02:24:50 PM
Looks terrific. We could use a lot of those functions.