Verse using statement |
using { /Verse.org/Simulation } |
Inheritance Hierarchy
This class is derived from entity.
| Name | Description |
|---|---|
entity |
Entities are the base object in the SceneGraph.
In the SceneGraph system a class that derives from While you can create base prefabs for common game object types like a vehicle or character, we highly recommended that you do not add code directly to the entity class, and instead keep logic in components. Keeping logic and data in components allows you to restructure your prefabs throughout production of your experience, without needing to massively refactor your class structure. |
Members
This class has functions, but no data members.
Functions
| Function Name | Description |
|---|---|
AddComponents |
Adds the provided components to the entity.
|
AddEntities |
Adds the provided entities as children of this entity.
|
GetComponent |
Succeeds and returns the child component of type |
GetComponents |
Returns the child components belonging to this entity which are accessible from the calling context. |
GetEntities |
Returns the child entities belonging to this entity which are accessible from the calling context.
|
GetParent |
Returns the parent entity of this entity.
|
RemoveFromParent |
Removes this entity from its parent. This is used to remove entities from the scene.
|
SendDown |
Send a scene event to this entity and then down the hierarchy. First, SendDown will be invoked on each component on this entity. Next, SendDown will be invoked on each child entity. Consuming the event at any point will halt propogation. Returns true if any participant consumed the event. |
SendUp |
Send a scene event to this entity and then up the hierarchy. First, SendDown will be invoked on each component on this entity. Next, SendUp will be invoked on this entity's parent. Consuming the event at any point will halt propogation. Returns true if any participant consumed the event. |