Skip to content

Commit 3f9ba7a

Browse files
author
ChengNan Yang
committed
Fix height will change after teleport
1 parent 97e19bc commit 3f9ba7a

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ public override void OnActivated()
154154
s_moduleInstance = this;
155155
m_currentInputSubsystemType = DetectCurrentInputSubsystemType();
156156
EnsureDeviceStateLength(DEVICE_STATE_LENGTH);
157+
UpdateTrackingSpaceType();
157158
Debug.Log("Activated XRLoader Name: " + XRGeneralSettings.Instance.Manager.activeLoader.name);
158159
}
159160

Assets/HTC.UnityPlugin/ViveInputUtility/Examples/Shared/Scripts/CustomDeviceHeight.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ public void UpdateHeight()
7575
transform.localPosition = new Vector3(pos.x, m_height, pos.y);
7676
}
7777
break;
78-
#endif
79-
#if UNITY_2019_3_OR_NEWER && UNITY_ANDROID
80-
case VRModuleActiveEnum.UnityXR:
81-
transform.localPosition = new Vector3(pos.x, m_height, pos.y);
82-
break;
8378
#endif
8479
}
8580
}

0 commit comments

Comments
 (0)