Skip to content

Commit

Permalink
Fixes #11340 - Splash image is not set when tracking is lost in holol…
Browse files Browse the repository at this point in the history
…ens (#11407)
  • Loading branch information
siamonas committed Apr 1, 2023
1 parent 7d4f02a commit b026319
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -114,7 +114,8 @@ public override void Update()
base.Update();

// This combination of states is from the Windows XR Plugin docs, describing the combination when positional tracking is inhibited.
if (sessionSubsystem.trackingState == UnityEngine.XR.ARSubsystems.TrackingState.None && sessionSubsystem.notTrackingReason == NotTrackingReason.Relocalizing)
// OpenXR implementation is less likely to drop all the way to TrackingState.None
if (sessionSubsystem.trackingState != UnityEngine.XR.ARSubsystems.TrackingState.Tracking && sessionSubsystem.notTrackingReason == NotTrackingReason.Relocalizing)
{
SetTrackingLost(true);
}
Expand Down

0 comments on commit b026319

Please sign in to comment.