cancel
Showing results for 
Search instead for 
Did you mean: 

When I set Time.timeScale to 0, the Oculus touch controllers are not tracking.

Anonymous
Not applicable
To pause my game, I am setting Time.timeScale to 0 in Unity3d.
When I do that, headset is being tracked but controllers are not moving. The touch controllers are getting struck the moment the timeScale becomes zero. When timeScale is reset to 1, the touch controllers are again getting tracked and are moving.

I didn't face this problem with the earlier version. In the new 1.11 update, I am facing this issue. 
Can anyone provide me a solution for it ?
3 REPLIES 3

cybereality
Grand Champion
Moving to the Unity developer forum.

Breachgate
Honored Guest
Any updates on this? Working on a VR project which sets the Time.timeScale to 0 to pause the game. 

EDIT: Looks like it is due to if Time.timeScale is set to 0, FixedUpdate will not be called (Unity thing) and this causes the OVRCameraRig to never update the anchors because that happens in the FixedUpdate function.

Breachgate
Honored Guest
Thanks. What I ended up doing was making the OVRCameraRig:UpdateAnchors function public and calling it from another script's update when Time.timeScale was set to 0.