You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 8, 2019. It is now read-only.
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 replace return lerpSpeed > 0.0f ? lerpSpeed * Time.deltaTime : 1.0f;
with return lerpSpeed > 0.0f ? lerpSpeed * Time.unscaledDeltaTime : 1.0f;
In GvrControllerVisual.cs replace float deltaTime = Time.deltaTime;
with float deltaTime = Time.unscaledDeltaTime;
and in GvrArmModel.cs replace float animationDelta = DELTA_ALPHA * Time.deltaTime;
with float animationDelta = DELTA_ALPHA * Time.unscaledDeltaTime;
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.csreplacereturn lerpSpeed > 0.0f ? lerpSpeed * Time.deltaTime : 1.0f;with
return lerpSpeed > 0.0f ? lerpSpeed * Time.unscaledDeltaTime : 1.0f;In
GvrControllerVisual.csreplacefloat deltaTime = Time.deltaTime;with
float deltaTime = Time.unscaledDeltaTime;and in
GvrArmModel.csreplacefloat animationDelta = DELTA_ALPHA * Time.deltaTime;with
float animationDelta = DELTA_ALPHA * Time.unscaledDeltaTime;