Skip to content

Commit 55a9cd6

Browse files
committed
fix(Utilities): update VR namespace to be XR
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`.
1 parent c48a9cd commit 55a9cd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/VRTK/Source/Scripts/Utilities/VRTK_SharedMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public static float GetGPUTimeLastFrame()
356356
float gpuTimeLastFrame;
357357
return (XRStats.TryGetGPUTimeLastFrame(out gpuTimeLastFrame) ? gpuTimeLastFrame : 0f);
358358
#else
359-
return VRStats.gpuTimeLastFrame;
359+
return XRStats.gpuTimeLastFrame;
360360
#endif
361361
}
362362

0 commit comments

Comments
 (0)