public static bool TryGetTrackingQuality(out int quality) { quality = default; if (!ARFrame.TextureIsAvailable()) { return(false); } ARTrackable.TrackingState trackingState = ARFrame.GetTrackingState(); switch (trackingState) { case ARTrackable.TrackingState.TRACKING: quality = 4; break; case ARTrackable.TrackingState.PAUSED: quality = 1; break; default: quality = 0; break; } return(true); }