Warning

Nightly releases are generated automatically from the latest source code and are intended for experimental purposes only. These builds may contain incomplete or untested features, bugs, or security vulnerabilities, and as such, are not for production use. Users should be aware that nightly releases may cause unexpected behavior, data loss, or system instability. Use of these releases is at the user's own risk, and it is advised to have adequate backups before testing. The software is provided as is with no guarantees or support.

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.