Drag[en]gine Script Module DragonScript
1.23
|
Public Member Functions | |
Constructors | |
SkyInstance | new () |
Create sky instance. More... | |
Management | |
Sky | getSky () |
Sky or null if not set. More... | |
void | setSky (Sky sky) |
Set sky or null if not set. More... | |
int | getOrder () |
Render order with higher order covering lower order. More... | |
void | setOrder (int order) |
Set render order with higher order covering lower order. More... | |
LayerMask | getLayerMask () |
Layer mask. More... | |
void | setLayerMask (LayerMask layerMask) |
Set layer mask. More... | |
Controllers | |
int | getControllerCount () |
Number of controllers. More... | |
SkyController | getControllerAt (int index) |
Get wrapper for controller. More... | |
SkyController | getControllerNamed (String name) |
Get wrapper for controller if present. More... | |
int | indexOfControllerNamed (String name) |
Index of named controller or -1 if not found. More... | |
Sky instance.
This is a native class.
SkyController Dragengine.Scenery.SkyInstance.getControllerAt | ( | int | index | ) |
Get wrapper for controller.
index | Index of controller. If index is negative controller count is added to it. This allows to get controllers starting from the last controller. |
EOutOfBoundary | controller is less than -getControllerCount() or larger than or equal to getControllerCount(). |
int Dragengine.Scenery.SkyInstance.getControllerCount | ( | ) |
Number of controllers.
SkyController Dragengine.Scenery.SkyInstance.getControllerNamed | ( | String | name | ) |
Get wrapper for controller if present.
name | Name of controller. If no controller with this name is present null is returned. |
LayerMask Dragengine.Scenery.SkyInstance.getLayerMask | ( | ) |
Layer mask.
int Dragengine.Scenery.SkyInstance.getOrder | ( | ) |
Render order with higher order covering lower order.
int Dragengine.Scenery.SkyInstance.indexOfControllerNamed | ( | String | name | ) |
Index of named controller or -1 if not found.
SkyInstance Dragengine.Scenery.SkyInstance.new | ( | ) |
Create sky instance.
void Dragengine.Scenery.SkyInstance.setLayerMask | ( | LayerMask | layerMask | ) |
Set layer mask.
void Dragengine.Scenery.SkyInstance.setOrder | ( | int | order | ) |
Set render order with higher order covering lower order.
void Dragengine.Scenery.SkyInstance.setSky | ( | Sky | sky | ) |
Set sky or null if not set.