Skip to content

Commit 386a535

Browse files
author
lawwong
committed
Fix compile error int Unity 5.3/5.4
1 parent 8ad9f3b commit 386a535

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Assets/HTC.UnityPlugin/VRModule/VRModuleManager.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,11 @@ private void OnCameraPreCull(Camera cam)
228228
var thisFrame = Time.frameCount;
229229
if (m_poseUpdatedFrame == thisFrame) { return; }
230230

231+
#if UNITY_5_5_OR_NEWER
231232
if (cam.cameraType != CameraType.Game && cam.cameraType != CameraType.VR) { return; }
233+
#else
234+
if (cam.cameraType != CameraType.Game) { return; }
235+
#endif
232236

233237
m_poseUpdatedFrame = thisFrame;
234238
UpdateActiveModuleDeviceState();

Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/VIUVersion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ namespace HTC.UnityPlugin.Vive
66
{
77
public static class VIUVersion
88
{
9-
public static readonly Version current = new Version("1.8.0.9");
9+
public static readonly Version current = new Version("1.8.0.10");
1010
}
1111
}

0 commit comments

Comments
 (0)