XRInitOptions

Type Alias XRInitOptions

XRInitOptions: {
    fitView?: boolean;
    resetHard?: boolean;
    resetInitTemplate?: boolean;
}

Defines the behavior of the initialization mode for modeltracking.

Type declaration

  • OptionalfitView?: boolean

    Specify if a view fitting should be performed. If set to true the model will be fitted to the current view volume. Otherwise it will stay at its current position.

    true
    
  • OptionalresetHard?: boolean

    Specify if a reset hard should be executed. If set to true all runtime data learned during tracking will be omitted.

    false
    
  • OptionalresetInitTemplate?: boolean

    Specify if a reset should also reset Init data. InitTemplates can be imported via the function RealityAPI.importXRInitTemplate.


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: