Skip to content

Commit

Permalink
fix(Utilities): update VR namespace to be XR
Browse files Browse the repository at this point in the history
In Unity 5.5.4 you get this error:
`Assets/VRTK/Source/Scripts/Utilities/VRTK_SharedMethods.cs(359,20):
 error CS0103: The name 'VRStats' does not exist in the current context`

The error disappears changing `VRStats` to `XRStats`.
  • Loading branch information
gpvigano committed Oct 27, 2017
1 parent c48a9cd commit 55a9cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/VRTK/Source/Scripts/Utilities/VRTK_SharedMethods.cs
Expand Up @@ -356,7 +356,7 @@ public static float GetGPUTimeLastFrame()
float gpuTimeLastFrame;
return (XRStats.TryGetGPUTimeLastFrame(out gpuTimeLastFrame) ? gpuTimeLastFrame : 0f);
#else
return VRStats.gpuTimeLastFrame;
return XRStats.gpuTimeLastFrame;
#endif
}

Expand Down

0 comments on commit 55a9cd6

Please sign in to comment.