Skip to main content

Interface: ILight<TLight>

Core-API.ILight

Type parameters

NameType
TLightany

Hierarchy

Implemented by

Properties

name

name: string

Inherited from

Omit.name

Defined in

webgi/src/interfaces.ts:305


uuid

Readonly uuid: string

Inherited from

Omit.uuid

Defined in

webgi/src/interfaces.ts:306


visible

visible: boolean

Inherited from

Omit.visible

Defined in

webgi/src/interfaces.ts:307


modelObject

modelObject: TLight

Internal three.js Object3D instance (like Mesh, Group, etc)

Inherited from

Omit.modelObject

Defined in

webgi/src/interfaces.ts:313


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

webgi/src/interfaces.ts:318


geometry

Optional Readonly geometry: any

Inherited from

Omit.geometry

Defined in

webgi/src/interfaces.ts:319


userData

userData: any

Inherited from

Omit.userData

Defined in

webgi/src/interfaces.ts:328


assetType

assetType: "light"

Defined in

webgi/src/interfaces.ts:332


lightObject

lightObject: TLight

Defined in

webgi/src/interfaces.ts:333


uiConfig

Optional uiConfig: UiObjectConfig<any, string>

Inherited from

IUiConfigContainer.uiConfig

Defined in

webgi/src/interfaces.ts:586

Methods

setMaterial

Optional setMaterial(material): IMaterial<any>[]

Parameters

NameType
materialundefined | IMaterial<any> | IMaterial<any>[]

Returns

IMaterial<any>[]

Inherited from

Omit.setMaterial

Defined in

webgi/src/interfaces.ts:320


setGeometry

Optional setGeometry(geometry, force?): any

returns the old geometry.

Parameters

NameType
geometryany
force?boolean

Returns

any

Inherited from

Omit.setGeometry

Defined in

webgi/src/interfaces.ts:326


setDirty

Optional setDirty(options?): void

Parameters

NameType
options?AnyOptions

Returns

void

Inherited from

Omit.setDirty

Defined in

webgi/src/interfaces.ts:327