API

Class WebXRRawCameraAccessSince

WebXR Feature for WebXR raw camera access 6.31.0

Hierarchy (View Summary)

Index
cameraIntrinsics: {
    ax: number;
    ay: number;
    gamma: number;
    height: number;
    u0: number;
    v0: number;
    viewportX: number;
    viewportY: number;
    width: number;
}[] = []

If needed, this array will contain the camera's intrinsics You can use this data to convert from camera space to screen space and vice versa

dependsOn?: string[]

The dependencies of this feature, if any

disableAutoAttach: boolean = false

Should auto-attach be disabled?

isDisposed: boolean = false

Is this feature disposed?

onFeatureAttachObservable: Observable<IWebXRFeature> = ...

Observers registered here will be executed when the feature is attached

onFeatureDetachObservable: Observable<IWebXRFeature> = ...

Observers registered here will be executed when the feature is detached

onTexturesUpdatedObservable: Observable<BaseTexture[]> = ...

An observable that will notify when the camera's textures are updated

options for the Feature

texturesData: BaseTexture[] = []

This is an array of camera views Note that mostly the array will contain a single view If you want to know the order of the views, use the viewIndex array

viewIndex: string[] = []

If needed, this array will contain the eye definition of each texture in texturesArray

Name: "xr-raw-camera-access" = WebXRFeatureName.RAW_CAMERA_ACCESS

The module's name

Version: 1

The (Babylon) version of this module. This is an integer representing the implementation version. This number does not correspond to the WebXR specs version