Entity

Represents an entity in the scene tree. It implements IStartable and IUpdateable service.

Constructors

this
this(string id)

Construct a scene entity using an id and its parent.

Members

Functions

addComponent
typeof(this) addComponent(T component)
component
T component()
removeComponent
typeof(this) removeComponent(ComponentType type)
start
void start()

Called after all scene entitys instantiation. It is optional.

update
void update()

Called every frame to update the current state of the scene entity. It is optional.

Variables

id
string id;
model
Model model;
scene
Scene scene;
transform
Transform transform;
visibility
Visibility visibility;

Inherited Members

From IStartable

start
void start()

* Called after all scene entitys instantiation.

From IUpdateable

update
void update()

* Called every frame to update the current state of the scene entity.

Meta