UnityEssentials
Small but useful tools and features for Unity
|
Component used to control the behaviour of any SimpleAnimation More...
Public Member Functions | |
SimpleAnimation | GetAnimation (int index) |
Obtain an animation configured trough the inspector and stored in the SimpleAnimationsManager's memory. More... | |
SimpleAnimation | GetAnimation (string animationName) |
Returns the simple animation stored in this SimpleAnimationsManager witht he same name as the given. More... | |
void | Play (SimpleAnimation animation, bool resume=false) |
Starts playing the animation. More... | |
void | Play (string animationName, bool resume=false) |
Starts playing the animation. More... | |
void | Play (int index, bool resume=false) |
Starts playing the animation. More... | |
void | Stop (SimpleAnimation animation) |
Stops playing the animation. More... | |
void | Play (string animationName) |
Starts playing the animation. More... | |
void | Stop (int index) |
Stops playing the animation. More... | |
void | Stop (string animationName) |
Stops playing the animation. More... | |
void | SetProgress (SimpleAnimation animation, float progress) |
Sets the animation at the given progress. More... | |
void | SetProgress (string animationName, float progress) |
Sets the animation at the given progress. More... | |
void | SetProgress (int index, float progress) |
Sets the animation at the given progress. More... | |
Public Attributes | |
List< ISimpleAnimation > | animations |
List of all the animations meant to be configured trough the inspector and/or stored in the SimpleAnimationsManager's memory. More... | |
Private Member Functions | |
void | Update () |
Private Attributes | |
HashSet< SimpleAnimation > | animationsToStop = new HashSet<SimpleAnimation>() |
List of all the animations that should stopped so they will be removed from the "playingAnimations" list at the next frame. More... | |
HashSet< SimpleAnimation > | playingAnimations = new HashSet<SimpleAnimation>() |
List of all the animations that are being played. More... | |
Component used to control the behaviour of any SimpleAnimation
Definition at line 9 of file SimpleAnimationsManager.cs.
SimpleAnimation UnityEngine.SimpleAnimationsManager.GetAnimation | ( | int | index | ) |
Obtain an animation configured trough the inspector and stored in the SimpleAnimationsManager's memory.
Index of the animation in the inspector if the SimpleAnimationsManager component.
Definition at line 20 of file SimpleAnimationsManager.cs.
SimpleAnimation UnityEngine.SimpleAnimationsManager.GetAnimation | ( | string | animationName | ) |
Returns the simple animation stored in this SimpleAnimationsManager witht he same name as the given.
animationName | The name of the wanted animation. |
Definition at line 33 of file SimpleAnimationsManager.cs.
void UnityEngine.SimpleAnimationsManager.Play | ( | int | index, |
bool | resume = false |
||
) |
Starts playing the animation.
index | The index of animation in the 'SimpleAnimationsManager' that is wanted to be played. |
resume | If the animation should continue where it was left (true) or restart (false, default). |
Definition at line 85 of file SimpleAnimationsManager.cs.
void UnityEngine.SimpleAnimationsManager.Play | ( | SimpleAnimation | animation, |
bool | resume = false |
||
) |
Starts playing the animation.
animation | The animation that is wanted to be played. |
resume | If the animation should continue where it was left (true) or restart (false, default). |
Definition at line 60 of file SimpleAnimationsManager.cs.
void UnityEngine.SimpleAnimationsManager.Play | ( | string | animationName | ) |
Starts playing the animation.
animationName | The name of the animation in the 'SimpleAnimationsManager' that is wanted to be played. |
Definition at line 104 of file SimpleAnimationsManager.cs.
void UnityEngine.SimpleAnimationsManager.Play | ( | string | animationName, |
bool | resume = false |
||
) |
Starts playing the animation.
animationName | The name of the animation in the 'SimpleAnimationsManager' that is wanted to be played. |
resume | If the animation should continue where it was left (true) or restart (false, default). |
Definition at line 75 of file SimpleAnimationsManager.cs.
void UnityEngine.SimpleAnimationsManager.SetProgress | ( | int | index, |
float | progress | ||
) |
Sets the animation at the given progress.
index | The index of animation in the 'SimpleAnimationsManager' that is wanted to be updated with the new progress. |
progress | The progress of the animation [0,1] |
Definition at line 173 of file SimpleAnimationsManager.cs.
void UnityEngine.SimpleAnimationsManager.SetProgress | ( | SimpleAnimation | animation, |
float | progress | ||
) |
Sets the animation at the given progress.
animation | The animation in the 'SimpleAnimationsManager' that is wanted to be updated with the new progress. |
progress | The progress of the animation [0,1] |
Definition at line 153 of file SimpleAnimationsManager.cs.
void UnityEngine.SimpleAnimationsManager.SetProgress | ( | string | animationName, |
float | progress | ||
) |
Sets the animation at the given progress.
animationName | The name of the animation in the 'SimpleAnimationsManager' that is wanted to be updated with the new progress. |
progress | The progress of the animation [0,1] |
Definition at line 163 of file SimpleAnimationsManager.cs.
void UnityEngine.SimpleAnimationsManager.Stop | ( | int | index | ) |
Stops playing the animation.
index | The index of the animation in the 'SimpleAnimationsManager' that is wanted to be stopped. |
Definition at line 113 of file SimpleAnimationsManager.cs.
void UnityEngine.SimpleAnimationsManager.Stop | ( | SimpleAnimation | animation | ) |
Stops playing the animation.
animation | The animation that is wanted to be stopped. |
Definition at line 94 of file SimpleAnimationsManager.cs.
void UnityEngine.SimpleAnimationsManager.Stop | ( | string | animationName | ) |
Stops playing the animation.
animationName | The name of the animation in the 'SimpleAnimationsManager' that is wanted to be stopped. |
Definition at line 122 of file SimpleAnimationsManager.cs.
|
private |
Definition at line 127 of file SimpleAnimationsManager.cs.
List<ISimpleAnimation> UnityEngine.SimpleAnimationsManager.animations |
List of all the animations meant to be configured trough the inspector and/or stored in the SimpleAnimationsManager's memory.
This animations can be played/stopped using the methods that require an index instead of a SimpleAnimation object.
Definition at line 15 of file SimpleAnimationsManager.cs.
|
private |
List of all the animations that should stopped so they will be removed from the "playingAnimations" list at the next frame.
Definition at line 48 of file SimpleAnimationsManager.cs.
|
private |
List of all the animations that are being played.
Definition at line 53 of file SimpleAnimationsManager.cs.