The Layer object allows you to access the properties of your scene's layers. Layers can be queried by using the Scene.GetLayer method.
| Layer actions | |
| GetNode | Queries a given node (region/entity) of the layer. |
| Dynamic object creation | |
| AddEntity | Adds a new entity to the top of the layer |
| InsertEntity | Inserts a new entity to the scene layer |
| AddRegion | Adds a new region to the top of the layer |
| InsertRegion | Inserts a new region to the scene layer |
| DeleteNode | Permanently removes a scene node (entity or region) from a scene layer |
| Type (read only) | Returns always "layer" |
| Name | The internal name of the layer |
| Active | Specifies whether the layer is visible on screen |
| NumNodes (read only) | Returns the number of nodes of the layer |
| Width (read only) | Returns the width of the layer |
| Height (read only) | Returns the height of the layer |
| Main (read only) | Returns true if this is the scene's main layer |
| CloseUp | Specifies whether this is a close-up layer |
Queries a given node (region/entity) of the layer.
Returns the requested node or null if a specified node doesn't exist.
Adds a new entity to the top of the layer
Returns a reference to the newly created entity object.
Inserts a new entity to the scene layer
Returns a reference to the newly created entity object.
Adds a new region to the top of the layer
Returns a reference to the newly created region object.
Inserts a new region to the scene layer
Returns a reference to the newly created region object.
Permanently removes a scene node (entity or region) from a scene layer
Returns true if the node was successfuly deleted.