Is there a way to check if controller is turned off?
I want to ignore the TrackedPoseDriver’s data for the controller if the controller is off.
Thanks
Is there a way to check if controller is turned off?
I want to ignore the TrackedPoseDriver’s data for the controller if the controller is off.
Thanks
You could check the tracking state to see if the controller is tracking, this doesnt mean it is turned off, but its probably the closest you get.
controller.trackingState == TrackingState.None
If you use oculus integration or steam vr you can get more controller info from there.
Hi FakeByte,
I couldn’t find the trackingState property in TrackedPoseDriver, could you tell me what class you are using?
https://docs.unity3d.com/2018.3/Documentation/ScriptReference/SpatialTracking.TrackedPoseDriver.html
Thanks
Its part of the new input system, the link you sent is part of the legacy system which is deprecated.
You can find the method here:
https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/api/UnityEngine.InputSystem.TrackedDevice.html#UnityEngine_InputSystem_TrackedDevice_trackingState