Allows the animation of Camera components.
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 Camera components.
Definition at line 9 of file CameraAnimation.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.
◆ CameraAnimation() [1/2]
UnityEngine.CameraAnimation.CameraAnimation |
( |
| ) |
|
◆ CameraAnimation() [2/2]
◆ GetAnimatedObject()
override Object UnityEngine.CameraAnimation.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.CameraAnimation.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 44 of file CameraAnimation.cs.
◆ ToString()
override string UnityEngine.SimpleAnimation.ToString |
( |
| ) |
|
|
inherited |
◆ _timeStamp
float UnityEngine.SimpleAnimation._timeStamp |
|
privateinherited |
◆ cameraToAnimate
Camera UnityEngine.CameraAnimation.cameraToAnimate |
◆ curve
AnimationCurve UnityEngine.SimpleAnimation.curve |
|
inherited |
◆ destinationCamera
Camera UnityEngine.CameraAnimation.destinationCamera |
The state of the Camera at the end of the animation
Definition at line 25 of file CameraAnimation.cs.
◆ duration
float UnityEngine.SimpleAnimation.duration |
|
inherited |
◆ 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.
◆ originCamera
Camera UnityEngine.CameraAnimation.originCamera |
The state of the Camera at the start of the animation
Definition at line 20 of file CameraAnimation.cs.
◆ 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: