Interface ICameraUserData

interface ICameraUserData {
    TransformAnimationPlugin?: {
        transforms: TSavedTransform[];
    };
    __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<IMaterialEvent<IMaterialEventTypes>, IMaterialEventTypes> | IMaterial<IMaterialEvent<IMaterialEventTypes>, IMaterialEventTypes>[];
    _variantMaterials?: Record<string, {
        material: IMaterial<IMaterialEvent<IMaterialEventTypes>, IMaterialEventTypes>;
    }>;
    autoCentered?: boolean;
    autoLookAtTarget?: boolean;
    autoNearFar?: boolean;
    autoScaleRadius?: number;
    autoScaled?: boolean;
    bboxVisible?: boolean;
    disableJitter?: boolean;
    dispose?: any;
    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;
    userSelectable?: boolean;
    uuid?: string;
}

Hierarchy (view full)

Properties

TransformAnimationPlugin?: {
    transforms: TSavedTransform[];
}

Type declaration

__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?: {}

Type declaration

    __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

    Used in GLTFObject3DExtrasExtension and iObjectCommons.upgradeObject3D

    __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)

    _variantMaterials?: Record<string, {
        material: IMaterial<IMaterialEvent<IMaterialEventTypes>, IMaterialEventTypes>;
    }>

    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.

    Default

    false
    
    autoNearFar?: boolean

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

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

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

    disableJitter?: boolean

    Disable jitter for this camera. (for SSAAPlugin)

    Default

    false
    
    dispose?: any

    Deprecated

    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.

    Default

    1000
    
    minNearPlane?: number

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

    Default

    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

    Deprecated

    setGeometry?: any

    Deprecated

    setMaterial?: any

    Deprecated

    userSelectable?: boolean

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

    uuid?: string

    Generated using TypeDoc