XRState

Reflects the current state of the XR system.

interface XRState {
    anchored: boolean;
    backgroundFeedVisible: boolean;
    modelTrackingPhase: XRModelTrackingPhase;
    worldMappingStatus: XRWorldMappingStatus;
}

Properties

anchored: boolean

Whether the rendered model is anchored in the XR space or not.

backgroundFeedVisible: boolean

Whether the background feed is visible or not.

modelTrackingPhase: XRModelTrackingPhase

Specifies in which phase the model tracking is.

If the XR system does not support model tracking, this value will always be XRModelTrackingPhase.NONE.

worldMappingStatus: XRWorldMappingStatus

Represents the current world mapping status of the XR system if available.


Did you find this page useful? Please give it a rating:
Thank you for rating this page!
Any issues or feedback?
What kind of problem would you like to report?
Please tell us more about what's wrong: