Component

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.

Properties
NameTypeDescription
entityEntity

The entity that this component is attached to.

propertiesobject

The properties of the component. [Read only]

Members

(readonly) properties

The entity that this component is attached to.