Type Alias CommonComponentProps

CommonComponentProps: {
    castShadow?: boolean;
    layers?: Layers;
    name?: string;
    position?: Vec3;
    receiveShadow?: boolean;
    renderOrder?: number;
    userData?: Record<string, any>;
    visible?: boolean;
}

Common props for 3d components

Type declaration

  • OptionalcastShadow?: boolean

    set the castShadow property on the THREE.js Object3D instance.

  • Optionallayers?: Layers

    set the layers property on the THREE.js Object3D instance.

  • Optionalname?: string

    will be added to the name property of the THREE.js Object3D instance

  • Optionalposition?: Vec3

    set the position in parent's local coordinates

  • OptionalreceiveShadow?: boolean

    set the receiveShadow property on the THREE.js Object3D instance.

  • OptionalrenderOrder?: number

    set the renderOrder property on the THREE.js Object3D instance.

  • OptionaluserData?: Record<string, any>

    set the userData object on the THREE.js Object3D instance

  • Optionalvisible?: boolean

    set the visible flag on the THREE.js Object3D instance