playMaker

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

kavery

  • Full Member
  • ***
  • Posts: 109
    • View Profile
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, 01:29:37 PM by kavery »

tcmeric

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

If so, which set?

kavery

  • Full Member
  • ***
  • Posts: 109
    • View Profile
Re: PM action for? "VREvent_TrackedDeviceUserInteractionStarted"
« Reply #2 on: May 24, 2018, 11:09:18 AM »
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: 693
    • View Profile
Re: PM action for? "VREvent_TrackedDeviceUserInteractionStarted"
« Reply #3 on: May 24, 2018, 08: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: https://www.youtube.com/watch?v=06p4mO9s--A&t=3s

kavery

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