Interface: ILight<TLight>
Core-API.ILight
Type parameters
Name | Type |
---|---|
TLight | any |
Hierarchy
Omit
<IModel
<TLight
>,"assetType"
>IJSONSerializable
↳
ILight
Implemented by
Properties
name
• name: string
Inherited from
Omit.name
Defined in
uuid
• Readonly
uuid: string
Inherited from
Omit.uuid
Defined in
visible
• visible: boolean
Inherited from
Omit.visible
Defined in
modelObject
• modelObject: TLight
Internal three.js Object3D instance (like Mesh, Group, etc)
Inherited from
Omit.modelObject
Defined in
material
• Optional
Readonly
material: IMaterial
<any
> | IMaterial
<any
>[]
Use setMaterial
to change the material
Get one or more materials applied to an object
Inherited from
Omit.material
Defined in
geometry
• Optional
Readonly
geometry: any
Inherited from
Omit.geometry
Defined in
userData
• userData: any
Inherited from
Omit.userData
Defined in
assetType
• assetType: "light"
Defined in
lightObject
• lightObject: TLight
Defined in
uiConfig
• Optional
uiConfig: UiObjectConfig
<any
, string
>
Inherited from
Defined in
Methods
setMaterial
▸ Optional
setMaterial(material
): IMaterial
<any
>[]
Parameters
Name | Type |
---|---|
material | undefined | IMaterial <any > | IMaterial <any >[] |
Returns
IMaterial
<any
>[]
Inherited from
Omit.setMaterial
Defined in
setGeometry
▸ Optional
setGeometry(geometry
, force?
): any
returns the old geometry.
Parameters
Name | Type |
---|---|
geometry | any |
force? | boolean |
Returns
any
Inherited from
Omit.setGeometry
Defined in
setDirty
▸ Optional
setDirty(options?
): void
Parameters
Name | Type |
---|---|
options? | AnyOptions |
Returns
void
Inherited from
Omit.setDirty