Interface ICameraUserData

interface ICameraUserData {
    __autoBubbleToParentEvents?: string[];
    __cameraSetup?: boolean;
    __gltfAsset?: {};
    __gltfExtras?: any;
    __importData?: any;
    __isMainCamera?: boolean;
    __keepShadowDef?: boolean;
    __lastScale?: Vector3;
    __meshSetup?: boolean;
    __needsSourceBuffer?: boolean;
    __objectSetup?: boolean;
    __sourceBlob?: IFile;
    __sourceBuffer?: ArrayBuffer;
    _originalMaterial?: IMaterial | IMaterial[];
    _variantMaterials?: Record<string, { material: IMaterial }>;
    autoCentered?: boolean;
    autoLookAtTarget?: boolean;
    autoNearFar?: boolean;
    autoScaled?: boolean;
    autoScaleRadius?: number;
    bboxVisible?: boolean;
    disableJitter?: boolean;
    dispose?: any;
    dollyFov?: boolean;
    excludeFromExport?: boolean;
    geometriesCentered?: boolean;
    gltfAnim_SyncMaxDuration?: boolean;
    isCentered?: boolean;
    license?: string;
    maxFarPlane?: number;
    minNearPlane?: number;
    physicsMass?: number;
    pseudoCentered?: boolean;
    rootPath?: string;
    rootSceneModelRoot?: boolean;
    setDirty?: any;
    setGeometry?: any;
    setMaterial?: any;
    TransformAnimationPlugin?: { transforms: TSavedTransform[] };
    userSelectable?: boolean;
    uuid?: string;
    [key: string]: any;
}

Hierarchy (View Summary)

Indexable

  • [key: string]: any

Properties

__autoBubbleToParentEvents?: string[]

Events that should be bubbled to parent root without the need to set bubbleToParent in the event. todo: remove support for this

__cameraSetup?: boolean
__gltfAsset?: {}
__gltfExtras?: any
__importData?: any

extra arbitrary data saved by the importer that can be used by the plugins (like gltf material variants)

__isMainCamera?: boolean
__keepShadowDef?: boolean
__lastScale?: Vector3
__meshSetup?: boolean
__needsSourceBuffer?: boolean

This can be set to true in the importer to indicate that the source buffer should be loaded and cached in the userdata during processRaw

__objectSetup?: boolean
__sourceBlob?: IFile

Cached source blob for the asset

__sourceBuffer?: ArrayBuffer

Cached source buffer for the asset (only cached when __needsSourceBuffer is set)

_originalMaterial?: IMaterial | IMaterial[]
_variantMaterials?: Record<string, { material: IMaterial }>

Starts with _ so that its not saved in gltf, but saved in json.

autoCentered?: boolean
autoLookAtTarget?: boolean

Automatically rotate camera to look at(lookAt) the target. Only for when controls and interactions are disabled.

false
autoNearFar?: boolean

Automatically calculate near and far planes based on the scene bounding box.

autoScaled?: boolean
autoScaleRadius?: number
bboxVisible?: boolean

should this object be taken into account when calculating bounding box, default true

disableJitter?: boolean

Disable jitter for this camera. (for SSAAPlugin)

false
dispose?: any
dollyFov?: boolean

Automatically move the camera(dolly) based on the scene size when the field of view(fov) changes. Works when controls are enabled or autoLookAtTarget is true.

Note - The camera must be added to RootScene for this to work

excludeFromExport?: boolean

When true, this object will not be exported when exporting the scene with AssetExporter.exportObject

geometriesCentered?: boolean
gltfAnim_SyncMaxDuration?: boolean
isCentered?: boolean
license?: string
maxFarPlane?: number

Maximum far plane distance. (when autoNearFar is true) Or the far plane distance when autoNearFar is false.

1000
minNearPlane?: number

Minimum near plane distance. (when autoNearFar is true) Or the near plane distance when autoNearFar is false.

0.2
physicsMass?: number

For Physics plugins

pseudoCentered?: boolean

Is centered in a parent object.

rootPath?: string
rootSceneModelRoot?: boolean

is it modelRoot in RootScene, used during serialization nad traversing ancestors

setDirty?: any
setGeometry?: any
setMaterial?: any
TransformAnimationPlugin?: { transforms: TSavedTransform[] }
userSelectable?: boolean

When false, this object will not be selectable when clicking on it.

uuid?: string