ReadonlyengineReadonlyguidThe entity unique id
The entity name
ReadonlytransformThe 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
Optionaloptions: 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.
Optionalcallback: SubscriberCallbackFnsubscriber callback
Subscribe a event
event type
callback functions
Optionaloptions: { options
Optionalpriority?: PriorityOptionaltarget?: anySubscribe a event, just emit once
subscriber callback
Optionalpriority?: PriorityOptionaltarget?: anyRemove a child from entity
Remove a component from the entity
component type
StaticfindFind entities by component
StaticfindStaticfindStaticfindStatictraverse
Entity
Export
Entity
Date
2023.12.27
Author
yisky