|
Drag[en]gine Script Module DragonScript 1.35
|
Public Member Functions | |
Management | |
| Sky | getSky () |
| Owner sky. | |
| int | getLayerIndex () |
| Owner layer index. | |
| int | getBodyIndex () |
| Body index. | |
Bodys | |
| Quaternion | getOrientation () |
| Orientation. | |
| void | setOrientation (Quaternion orientation) |
| Set orientation. | |
| Vector2 | getSize () |
| Size in radians. | |
| void | setSize (Vector2 size) |
| Set size in radians. | |
| Color | getColor () |
| Blending color. | |
| void | setColor (Color color) |
| Set blending color. | |
| Skin | getSkin () |
| Skin or null if not set. | |
| void | setSkin (Skin skin) |
| Set skin or null if not set. | |
Sky body.
Wraps a sky body by body index. Valid only as long as the wrapped sky does not change layer layout and layer does not change body layout. The user is responsible to call Sky.contentChanged() after changing one or more bodys. Sky bodys should not be changed if possible after being used in sky instances.
This is a native class.
| int Dragengine.Scenery.SkyBody.getBodyIndex | ( | ) |
| Color Dragengine.Scenery.SkyBody.getColor | ( | ) |
| int Dragengine.Scenery.SkyBody.getLayerIndex | ( | ) |
Owner layer index.
Referenced by getBodyIndex().
| Quaternion Dragengine.Scenery.SkyBody.getOrientation | ( | ) |
Orientation.
Referenced by getSize().
| Vector2 Dragengine.Scenery.SkyBody.getSize | ( | ) |
| void Dragengine.Scenery.SkyBody.setColor | ( | Color | color | ) |
| void Dragengine.Scenery.SkyBody.setOrientation | ( | Quaternion | orientation | ) |
Set orientation.
Referenced by getColor().
| void Dragengine.Scenery.SkyBody.setSize | ( | Vector2 | size | ) |
Set size in radians.
Referenced by setSkin().
| void Dragengine.Scenery.SkyBody.setSkin | ( | Skin | skin | ) |
Set skin or null if not set.
References getColor(), getSkin(), setColor(), setSize(), and setSkin().
Referenced by setSkin().