A component is a special type of object that can be attached to a entity. Components are used to add functionality to entities. Every component is unique and can only be attached to one entity at a time. A component describes the behaviour of a game object, and is not a entity itself.
Name | Type | Description |
---|---|---|
entity | Entity | The entity that this component is attached to. |
properties | object | The properties of the component. [Read only] |
- Source
Members
(readonly) properties
The entity that this component is attached to.
- Source