ThreePipe
    Preparing search index...

    Interface ICameraUserData

    interface ICameraUserData {
        __autoBubbleToParentEvents?: string[];
        __cameraSetup?: boolean;
        __gltfAsset?: {};
        __gltfExtras?: Record<string, any>;
        __importData?: any;
        __isMainCamera?: boolean;
        __keepShadowDef?: boolean;
        __lastScale?: Vector3;
        __meshSetup?: boolean;
        __needsSourceBuffer?: boolean;
        __objectSetup?: boolean;
        __sourceBlob?: IFile;
        __sourceBuffer?: ArrayBuffer;
        _originalMaterial?:
            | IMaterial<IMaterialEventMap>
            | IMaterial<IMaterialEventMap>[];
        _variantMaterials?: Record<string, { material: IMaterial }>;
        animationObjects?: AnimationObject<any>[];
        autoCentered?: boolean;
        autoLookAtTarget?: boolean;
        autoNearFar?: boolean;
        autoRegisterInManager?: boolean;
        autoScaled?: boolean;
        autoScaleRadius?: number;
        autoUpdateParent?: boolean;
        bboxVisible?: boolean;
        constraints?: ObjectConstraint<keyof ConstraintPropsTypes>[];
        disableJitter?: boolean;
        dispose?: any;
        disposeOnIdle?: boolean;
        dollyFov?: boolean;
        excludeFromExport?: boolean;
        geometriesCentered?: boolean;
        gltfAnim_SyncMaxDuration?: boolean;
        isCentered?: boolean;
        license?: string;
        maxFarPlane?: number;
        minNearPlane?: number;
        physicsMass?: number;
        pseudoCentered?: boolean;
        rootPath?: string;
        rootPathOptions?: Record<string, any>;
        rootPathRefresh?: boolean;
        rootSceneModelRoot?: boolean;
        setDirty?: any;
        setGeometry?: any;
        setMaterial?: any;
        TransformAnimationPlugin?: { transforms: TSavedTransform[] };
        transformControls?: {
            lockProps?: string[];
            mode?: "translate" | "rotate" | "scale";
            rotationSnap?: number;
            scaleSnap?: number;
            showX?: boolean;
            showY?: boolean;
            showZ?: boolean;
            space?: "world" | "local";
            translationSnap?: number;
        };
        userSelectable?: boolean;
        uuid?: string;
        [key: string]: any;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: any
    Index

    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?: Record<string, 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<IMaterialEventMap>
        | IMaterial<IMaterialEventMap>[]
    _variantMaterials?: Record<string, { material: IMaterial }>

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

    animationObjects?: AnimationObject<any>[]
    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.

    autoRegisterInManager?: boolean

    Automatically register this object in the AssetManager when added to the scene. This provides hook to other plugins to extend the object, add uiconfig, etc.

    true
    
    autoScaled?: boolean
    autoScaleRadius?: number
    autoUpdateParent?: boolean

    Disables bubbleToParent in setDirty calls on the object. As an effect scene, viewer are not updated on property change. See progressive-hdr-shadows-exp or any baker.

    bboxVisible?: boolean

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

    constraints?: ObjectConstraint<keyof ConstraintPropsTypes>[]
    disableJitter?: boolean

    Disable jitter for this camera. (for SSAAPlugin)

    false
    
    dispose?: any
    disposeOnIdle?: boolean

    Auto dispose when removed from the scene. Note - this is only used when Object3DManager.autoDisposeObjects is true

    true
    
    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

    The path from which the asset was downloaded/imported.

    rootPathOptions?: Record<string, any>

    Incase files are loaded as different extensions(like for json), this will be set.

    rootPathRefresh?: boolean

    Whether to refresh this object from the asset manager when its loaded as an embedded object

    rootSceneModelRoot?: boolean

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

    setDirty?: any
    setGeometry?: any
    setMaterial?: any
    TransformAnimationPlugin?: { transforms: TSavedTransform[] }
    transformControls?: {
        lockProps?: string[];
        mode?: "translate" | "rotate" | "scale";
        rotationSnap?: number;
        scaleSnap?: number;
        showX?: boolean;
        showY?: boolean;
        showZ?: boolean;
        space?: "world" | "local";
        translationSnap?: number;
    }

    Settings for TransformControls2 when this object is selected. See TransformControlsPlugin

    userSelectable?: boolean

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

    uuid?: string