Allows the animation of a float.
More...
|
static AnimationCurve | GetCurve (Curve curve) |
| Obtains the desired type of animation curve with a duration of 1 (starting on 0), the start value being 0 and the end value being 1 More...
|
|
Allows the animation of a float.
Definition at line 9 of file FloatAnimation.cs.
◆ WrapMode
How the animation behaves once finished. Should be executed only once? Start over? Go back?
Enumerator |
---|
Once | |
Loop | |
PingPong | |
Definition at line 75 of file SimpleAnimation.cs.
◆ FloatAnimation() [1/2]
UnityEngine.FloatAnimation.FloatAnimation |
( |
| ) |
|
◆ FloatAnimation() [2/2]
◆ GetAnimatedObject()
override Object UnityEngine.FloatAnimation.GetAnimatedObject |
( |
bool |
displayWarningIfNotApplicable | ) |
|
|
virtual |
◆ GetCurve()
static AnimationCurve UnityEngine.SimpleAnimation.GetCurve |
( |
Curve |
curve | ) |
|
|
staticinherited |
Obtains the desired type of animation curve with a duration of 1 (starting on 0), the start value being 0 and the end value being 1
- Parameters
-
curve | THe desired type of curve. |
- Returns
- The desired type of animation curve with a duration of 1 (starting on 0), the start value being 0 and the end value being 1
Definition at line 149 of file SimpleAnimation.cs.
◆ Reset()
void UnityEngine.SimpleAnimation.Reset |
( |
| ) |
|
|
inherited |
Sets the time stamps of the animation to the beginning (the behaviour changes depending on if the animation is set as mirror or not).
Definition at line 132 of file SimpleAnimation.cs.
◆ SetProgress()
virtual void UnityEngine.SimpleAnimation.SetProgress |
( |
float |
progress | ) |
|
|
virtualinherited |
Sets the animation at the given progress.
- Parameters
-
progress | The progress of the animation [0,1] |
Definition at line 166 of file SimpleAnimation.cs.
◆ Step()
override bool UnityEngine.FloatAnimation.Step |
( |
float |
deltaTime, |
|
|
bool |
inverseIfMirror = true |
|
) |
| |
|
virtual |
Go forward or backwards in the animation.
- Parameters
-
deltaTime | The elapsed time between the last step and the current one. |
inverseIfMirror | If true, the delta time of the step will be inverted if the animation is set to mirror. |
- Returns
- True if the animation should have ended. False if the animation should still in progress.
Reimplemented from UnityEngine.SimpleAnimation.
Definition at line 42 of file FloatAnimation.cs.
◆ ToString()
override string UnityEngine.SimpleAnimation.ToString |
( |
| ) |
|
|
inherited |
◆ _timeStamp
float UnityEngine.SimpleAnimation._timeStamp |
|
privateinherited |
◆ curve
AnimationCurve UnityEngine.SimpleAnimation.curve |
|
inherited |
◆ destinationFloat
float UnityEngine.FloatAnimation.destinationFloat |
◆ duration
float UnityEngine.SimpleAnimation.duration |
|
inherited |
◆ floatToAnimate
float UnityEngine.FloatAnimation.floatToAnimate |
◆ mirror
bool UnityEngine.SimpleAnimation.mirror |
|
inherited |
Should the animation be played from end to start instead of from start to end?
Definition at line 45 of file SimpleAnimation.cs.
◆ name
string UnityEngine.SimpleAnimation.name |
|
inherited |
◆ onFinish
UnityEvent UnityEngine.SimpleAnimation.onFinish |
|
inherited |
◆ onStep
UnityEvent UnityEngine.SimpleAnimation.onStep |
|
inherited |
Events executed every time the animation advances.
Definition at line 64 of file SimpleAnimation.cs.
◆ originFloat
float UnityEngine.FloatAnimation.originFloat |
◆ wrapMode
WrapMode UnityEngine.SimpleAnimation.wrapMode |
|
inherited |
Determines how the animation behaves once finished. Should be executed only once? Start over? Go back?
Definition at line 40 of file SimpleAnimation.cs.
◆ currentAnimationCurveValue
float UnityEngine.SimpleAnimation.currentAnimationCurveValue |
|
getinherited |
The value of the animation at the current time. 0 means start state. 1 means end state.
Definition at line 59 of file SimpleAnimation.cs.
◆ progress
float UnityEngine.SimpleAnimation.progress |
|
getsetinherited |
◆ timeStamp
float UnityEngine.SimpleAnimation.timeStamp |
|
getprotected setinherited |
The current moment/time of the animation. From 0 to duration.
Definition at line 22 of file SimpleAnimation.cs.
The documentation for this class was generated from the following file: