Skip to content

Commit 97e19bc

Browse files
author
lawwong
committed
Fix compile error when WAVEXR_ESSENCE_RENDERMODEL is installed
1 parent 8767ca1 commit 97e19bc

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Assets/HTC.UnityPlugin/VRModule/Modules/UnityXRModule.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ public override void CreateCamera(VRCameraHook hook)
5555
[RenderModelHook.CreatorPriorityAttirbute(0)]
5656
private class RenderModelCreator : RenderModelHook.DefaultRenderModelCreator
5757
{
58+
#if VIU_WAVEXR_ESSENCE_RENDERMODEL
59+
private uint m_index = INVALID_DEVICE_INDEX;
60+
#endif
5861
public override bool shouldActive { get { return s_moduleInstance == null ? false : s_moduleInstance.isActivated; } }
5962

6063
public override void UpdateRenderModel()
@@ -937,9 +940,9 @@ private Quaternion GetDeviceFeatureValueOrDefault(InputDevice device, InputFeatu
937940
return default;
938941
}
939942

940-
private Hand GetDeviceFeatureValueOrDefault(InputDevice device, InputFeatureUsage<Hand> feature)
943+
private UnityEngine.XR.Hand GetDeviceFeatureValueOrDefault(InputDevice device, InputFeatureUsage<UnityEngine.XR.Hand> feature)
941944
{
942-
Hand value;
945+
UnityEngine.XR.Hand value;
943946
if (device.TryGetFeatureValue(feature, out value))
944947
{
945948
return value;
@@ -1026,5 +1029,5 @@ private static string CharacteristicsToString(InputDeviceCharacteristics ch)
10261029
return str;
10271030
}
10281031
#endif
1029-
}
1030-
}
1032+
}
1033+
}

0 commit comments

Comments
 (0)