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