Class: Stats
Performance info stats
Hierarchy
ComponentBase
↳
Stats
Properties
Constructors
Accessors
Methods
Properties
container
• container: HTMLElement
Stats DOM container with default class="stats"
could custom container style with css
Defined in
object3D
• object3D: Object3D
= null
owner object3D
Inherited from
ComponentBase.object3D
Defined in
src/components/ComponentBase.ts:17
Constructors
constructor
• new Stats()
Inherited from
ComponentBase.constructor
Defined in
src/components/ComponentBase.ts:31
Accessors
transform
• get
transform(): Transform
Return the Transform component attached to the Object3D.
Returns
Transform
Inherited from
ComponentBase.transform
Defined in
src/components/ComponentBase.ts:38
enable
• get
enable(): boolean
Enable/disable components. The enabled components can be updated, while the disabled components cannot be updated.
Returns
boolean
Inherited from
ComponentBase.enable
Defined in
src/components/ComponentBase.ts:59
• set
enable(value
): void
Enable/disable components. The enabled components can be updated, while the disabled components cannot be updated.
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
ComponentBase.enable
Defined in
src/components/ComponentBase.ts:45
Methods
start
▸ start(): void
Returns
void
Inherited from
ComponentBase.start
Defined in
src/components/ComponentBase.ts:107
onLateUpdate
▸ Optional
onLateUpdate(view?
): any
Parameters
Name | Type |
---|---|
view? | View3D |
Returns
any
Inherited from
ComponentBase.onLateUpdate
Defined in
src/components/ComponentBase.ts:112
onBeforeUpdate
▸ Optional
onBeforeUpdate(view?
): any
Parameters
Name | Type |
---|---|
view? | View3D |
Returns
any
Inherited from
ComponentBase.onBeforeUpdate
Defined in
src/components/ComponentBase.ts:113
onCompute
▸ Optional
onCompute(view?
, command?
): any
Parameters
Name | Type |
---|---|
view? | View3D |
command? | GPUCommandEncoder |
Returns
any
Inherited from
ComponentBase.onCompute
Defined in
src/components/ComponentBase.ts:114
onGraphic
▸ Optional
onGraphic(view?
): any
Parameters
Name | Type |
---|---|
view? | View3D |
Returns
any
Inherited from
ComponentBase.onGraphic
Defined in
src/components/ComponentBase.ts:115
cloneTo
▸ cloneTo(obj
): void
clone component data to target object3D
Parameters
Name | Type | Description |
---|---|---|
obj | Object3D | target object3D |
Returns
void
Inherited from
ComponentBase.cloneTo
Defined in
src/components/ComponentBase.ts:122
destroy
▸ destroy(): void
release this component
Returns
void
Inherited from
ComponentBase.destroy