Skip to content

Commit 48c3b7b

Browse files
authored
Merge pull request #2897 from Ecnassianer/mrplayspace_null
fixed a case where the MixedRealityPlayspace could return null
2 parents 67c7157 + 618dc0a commit 48c3b7b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/MixedRealityToolkit/_Core/Managers/MixedRealityManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ public Transform MixedRealityPlayspace
409409
Debug.LogWarning("The Mixed Reality Manager expected the camera's parent to be named " + MixedRealityPlayspaceName + ". The existing parent will be renamed and used instead.");
410410
CameraCache.Main.transform.parent.name = MixedRealityPlayspaceName; // If we rename it, we make it clearer that why it's being teleported around at runtime.
411411
}
412+
mixedRealityPlayspace = CameraCache.Main.transform.parent;
412413
}
413414

414415
// It's very important that the MixedRealityPlayspace align with the tracked space,

0 commit comments

Comments
 (0)