Interface: IComponent
Implemented by
Properties
Methods
- init
- start
- stop
- onEnable
- onDisable
- onUpdate
- onLateUpdate
- onBeforeUpdate
- onCompute
- onGraphic
- cloneTo
- destroy
- beforeDestroy
- onParentChange
- onAddChild
- onRemoveChild
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
Name | Type |
---|---|
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
Name | Type |
---|---|
view? | View3D |
Returns
any
Defined in
src/components/IComponent.ts:15
onDisable
▸ onDisable(view?
): any
Parameters
Name | Type |
---|---|
view? | View3D |
Returns
any
Defined in
src/components/IComponent.ts:16
onUpdate
▸ onUpdate(view?
): any
Parameters
Name | Type |
---|---|
view? | View3D |
Returns
any
Defined in
src/components/IComponent.ts:17
onLateUpdate
▸ onLateUpdate(view?
): any
Parameters
Name | Type |
---|---|
view? | View3D |
Returns
any
Defined in
src/components/IComponent.ts:18
onBeforeUpdate
▸ onBeforeUpdate(view?
): any
Parameters
Name | Type |
---|---|
view? | View3D |
Returns
any
Defined in
src/components/IComponent.ts:19
onCompute
▸ onCompute(view?
, command?
): any
Parameters
Name | Type |
---|---|
view? | View3D |
command? | GPUCommandEncoder |
Returns
any
Defined in
src/components/IComponent.ts:20
onGraphic
▸ onGraphic(view?
): any
Parameters
Name | Type |
---|---|
view? | View3D |
Returns
any
Defined in
src/components/IComponent.ts:21
cloneTo
▸ cloneTo(obj
): any
Parameters
Name | Type |
---|---|
obj | Object3D |
Returns
any
Defined in
src/components/IComponent.ts:22
destroy
▸ destroy(force?
): any
Parameters
Name | Type |
---|---|
force? | boolean |
Returns
any
Defined in
src/components/IComponent.ts:23
beforeDestroy
▸ beforeDestroy(force?
): any
Parameters
Name | Type |
---|---|
force? | boolean |
Returns
any
Defined in
src/components/IComponent.ts:24
onParentChange
▸ onParentChange(lastParent?
, currentParent?
): any
Parameters
Name | Type |
---|---|
lastParent? | Object3D |
currentParent? | Object3D |
Returns
any
Defined in
src/components/IComponent.ts:25
onAddChild
▸ onAddChild(child
): any
Parameters
Name | Type |
---|---|
child | Object3D |
Returns
any
Defined in
src/components/IComponent.ts:27
onRemoveChild
▸ onRemoveChild(child
): any
Parameters
Name | Type |
---|---|
child | Object3D |
Returns
any