This repository has been archived by the owner on Nov 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Controller not working when Time.timeScale = 0 #690
Labels
Comments
Great suggestion. We're integrating something like this now. |
Addressed in v1.100.0 |
Has this been fixed? I still have a similar problem with Google Cardboard game using Unity 2018.2 and Google VR for Unity 1.150.0. When Time.timeScale is set to 0 the reticle pointer disappears. |
Could you try replacing instances of |
@rusmaxham, thank you a lot, the solution works perfectly! |
Good to know. We'll get this fixed in the next release. |
This is now fixed in v1.170. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Few days ago I posted a thread about this bug. It's about the controller not working properly when Time.timeScale is set to 0. The controller isn't visible if Time.timeScale i 0 from the start, it doesn't interact with UI and tooltips are invisible. I managed to fix this by making following changes:
In
GvrLaserVisual.cs
replacereturn lerpSpeed > 0.0f ? lerpSpeed * Time.deltaTime : 1.0f;
with
return lerpSpeed > 0.0f ? lerpSpeed * Time.unscaledDeltaTime : 1.0f;
In
GvrControllerVisual.cs
replacefloat deltaTime = Time.deltaTime;
with
float deltaTime = Time.unscaledDeltaTime;
and in
GvrArmModel.cs
replacefloat animationDelta = DELTA_ALPHA * Time.deltaTime;
with
float animationDelta = DELTA_ALPHA * Time.unscaledDeltaTime;
The text was updated successfully, but these errors were encountered: