|
Drag[en]gine Script Module DragonScript 1.32.1
|
Playback support for elements. More...
Public Member Functions | |
| void | apply () |
| Apply animation. | |
| AnimatorController | getController () |
| Playback controller or null if not available. | |
| AnimatorInstance | getInstance () |
| Animator instance or null if not available. | |
| bool | getLooping () |
| Is looping. | |
| bool | getPlaying () |
| Is playing back. | |
| float | getPlaySpeed () |
| Playback speed. | |
| float | getTime () |
| Playback time. | |
| float | getTimeRelative () |
| Relative playback time in the range from 0 to 1. | |
| bool | isAtBegin () |
| Playback is at beginning. | |
| bool | isAtEnd () |
| Playback is at end. | |
| Playback | new (AnimatorInstance instance, String playbackController) |
| Create playback. | |
| void | readFromFile (PersistencyEnvironment env, FileReader reader) |
| Read element from file. | |
| void | rewind () |
| Rewind. | |
| void | setControllerIndex (int index) |
| Set playback controller from index if valid. | |
| void | setControllerNamed (String name) |
| Set playback controller by name if valid. | |
| void | setLooping (bool looping) |
| Set if looping. | |
| void | setPlaying (bool playing) |
| Set if playing back. | |
| void | setPlaySpeed (float playSpeed) |
| Set playback speed. | |
| void | setTime (float time) |
| Set playback time. | |
| void | setTimeRelative (float time) |
| Set relative playback time in the range from 0 to 1. | |
| void | update (float elapsed) |
| Update animator. | |
| void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
| Write element to file. | |
Public Attributes | |
| AnimatorController | pController |
| AnimatorInstance | pInstance |
| bool | pPlaying |
| float | pPlaySpeed |
Playback support for elements.
| void Dragengine.Scenery.ECComposeAnimator.Playback.apply | ( | ) |
Apply animation.
| AnimatorController Dragengine.Scenery.ECComposeAnimator.Playback.getController | ( | ) |
Playback controller or null if not available.
| AnimatorInstance Dragengine.Scenery.ECComposeAnimator.Playback.getInstance | ( | ) |
Animator instance or null if not available.
| bool Dragengine.Scenery.ECComposeAnimator.Playback.getLooping | ( | ) |
Is looping.
| bool Dragengine.Scenery.ECComposeAnimator.Playback.getPlaying | ( | ) |
Is playing back.
| float Dragengine.Scenery.ECComposeAnimator.Playback.getPlaySpeed | ( | ) |
Playback speed.
| float Dragengine.Scenery.ECComposeAnimator.Playback.getTime | ( | ) |
Playback time.
| float Dragengine.Scenery.ECComposeAnimator.Playback.getTimeRelative | ( | ) |
Relative playback time in the range from 0 to 1.
| bool Dragengine.Scenery.ECComposeAnimator.Playback.isAtBegin | ( | ) |
Playback is at beginning.
| bool Dragengine.Scenery.ECComposeAnimator.Playback.isAtEnd | ( | ) |
Playback is at end.
| Playback Dragengine.Scenery.ECComposeAnimator.Playback.new | ( | AnimatorInstance | instance, |
| String | playbackController | ||
| ) |
Create playback.
| void Dragengine.Scenery.ECComposeAnimator.Playback.readFromFile | ( | PersistencyEnvironment | env, |
| FileReader | reader | ||
| ) |
Read element from file.
| void Dragengine.Scenery.ECComposeAnimator.Playback.rewind | ( | ) |
Rewind.
| void Dragengine.Scenery.ECComposeAnimator.Playback.setControllerIndex | ( | int | index | ) |
Set playback controller from index if valid.
| void Dragengine.Scenery.ECComposeAnimator.Playback.setControllerNamed | ( | String | name | ) |
Set playback controller by name if valid.
| void Dragengine.Scenery.ECComposeAnimator.Playback.setLooping | ( | bool | looping | ) |
Set if looping.
| void Dragengine.Scenery.ECComposeAnimator.Playback.setPlaying | ( | bool | playing | ) |
Set if playing back.
| void Dragengine.Scenery.ECComposeAnimator.Playback.setPlaySpeed | ( | float | playSpeed | ) |
Set playback speed.
| void Dragengine.Scenery.ECComposeAnimator.Playback.setTime | ( | float | time | ) |
Set playback time.
| void Dragengine.Scenery.ECComposeAnimator.Playback.setTimeRelative | ( | float | time | ) |
Set relative playback time in the range from 0 to 1.
| void Dragengine.Scenery.ECComposeAnimator.Playback.update | ( | float | elapsed | ) |
Update animator.
Advances the controller by the elapsed time multiplied by the play speeed and calls AnimatorInstance.apply().
| void Dragengine.Scenery.ECComposeAnimator.Playback.writeToFile | ( | PersistencyEnvironment | env, |
| FileWriter | writer | ||
| ) |
Write element to file.
| AnimatorController Dragengine.Scenery.ECComposeAnimator.Playback.pController |
| AnimatorInstance Dragengine.Scenery.ECComposeAnimator.Playback.pInstance |
| bool Dragengine.Scenery.ECComposeAnimator.Playback.pPlaying |
| float Dragengine.Scenery.ECComposeAnimator.Playback.pPlaySpeed |