Fix error when UnityXR is not enabled
This commit is contained in:
parent
115fe62c49
commit
14d30d28e3
@ -453,8 +453,10 @@ namespace Passer.Humanoid {
|
||||
AddCharacterColliders();
|
||||
avatarNeckHeight = GetAvatarNeckHeight();
|
||||
|
||||
#if pUNITYXR
|
||||
if (headTarget.unityXR != null)
|
||||
headTarget.unityXR.UpdateSensorLocation();
|
||||
#endif
|
||||
|
||||
switch (scaling) {
|
||||
case ScalingType.SetHeightToAvatar:
|
||||
|
Loading…
x
Reference in New Issue
Block a user