Readonly
engineReadonly
guidThe entity unique id
The entity name
Readonly
transformThe entity owned transform component.
The entity user data
Defines whether the entity is active in the Scene
The local active state of this entity.
Is a root entity
Set the entity is visible.
Add a child to entity
child entity
Add a component to the entity
component type
Optional
options: Binitialization options
Create a child entity
entity options
Get a component from the entity
component type
Determine whether the entity has a component of the type
component type
Unsubscribe a event, if the callback param is not defined, all subscribers of this type will be removed.
Optional
callback: SubscriberCallbackFnsubscriber callback
Subscribe a event
event type
callback functions
Optional
options: { options
Optional
priority?: PriorityOptional
target?: anySubscribe a event, just emit once
subscriber callback
Optional
priority?: PriorityOptional
target?: anyRemove a child from entity
Remove a component from the entity
component type
Static
findFind entities by component
Static
findStatic
findStatic
findStatic
traverse
Entity
Export
Entity
Date
2023.12.27
Author
yisky