Skip to content

Interface: IComponent

Implemented by

Properties

Methods

Properties

object3D

object3D: Object3D

Defined in

src/components/IComponent.ts:7


eventDispatcher

eventDispatcher: CEventDispatcher

Defined in

src/components/IComponent.ts:8


transform

transform: Transform

Defined in

src/components/IComponent.ts:9


enable

enable: boolean

Defined in

src/components/IComponent.ts:10


isDestroyed

Optional isDestroyed: boolean

Defined in

src/components/IComponent.ts:11

Methods

init

init(param?): any

Parameters

NameType
param?any

Returns

any

Defined in

src/components/IComponent.ts:12


start

start(): any

Returns

any

Defined in

src/components/IComponent.ts:13


stop

stop(): any

Returns

any

Defined in

src/components/IComponent.ts:14


onEnable

onEnable(view?): any

Parameters

NameType
view?View3D

Returns

any

Defined in

src/components/IComponent.ts:15


onDisable

onDisable(view?): any

Parameters

NameType
view?View3D

Returns

any

Defined in

src/components/IComponent.ts:16


onUpdate

onUpdate(view?): any

Parameters

NameType
view?View3D

Returns

any

Defined in

src/components/IComponent.ts:17


onLateUpdate

onLateUpdate(view?): any

Parameters

NameType
view?View3D

Returns

any

Defined in

src/components/IComponent.ts:18


onBeforeUpdate

onBeforeUpdate(view?): any

Parameters

NameType
view?View3D

Returns

any

Defined in

src/components/IComponent.ts:19


onCompute

onCompute(view?, command?): any

Parameters

NameType
view?View3D
command?GPUCommandEncoder

Returns

any

Defined in

src/components/IComponent.ts:20


onGraphic

onGraphic(view?): any

Parameters

NameType
view?View3D

Returns

any

Defined in

src/components/IComponent.ts:21


cloneTo

cloneTo(obj): any

Parameters

NameType
objObject3D

Returns

any

Defined in

src/components/IComponent.ts:22


destroy

destroy(force?): any

Parameters

NameType
force?boolean

Returns

any

Defined in

src/components/IComponent.ts:23


beforeDestroy

beforeDestroy(force?): any

Parameters

NameType
force?boolean

Returns

any

Defined in

src/components/IComponent.ts:24


onParentChange

onParentChange(lastParent?, currentParent?): any

Parameters

NameType
lastParent?Object3D
currentParent?Object3D

Returns

any

Defined in

src/components/IComponent.ts:25


onAddChild

onAddChild(child): any

Parameters

NameType
childObject3D

Returns

any

Defined in

src/components/IComponent.ts:27


onRemoveChild

onRemoveChild(child): any

Parameters

NameType
childObject3D

Returns

any

Defined in

src/components/IComponent.ts:28

Released under the MIT License