Show / Hide Table of Contents

Class DurationAnimationSequence

Abstract class for a animation which lives for a certain duration.

Inheritance
System.Object
DurationAnimationSequence
TransformAnimatorDurationSequence
ValueDurationAnimation<T>
Implements
IAnmationSequence
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: AnimationHelpers
Assembly: cs.temp.dll.dll
Syntax
public abstract class DurationAnimationSequence : IAnmationSequence

Constructors

DurationAnimationSequence(Single, Boolean)

Create a new instance of DurationAnimationSequence

Declaration
public DurationAnimationSequence(float duration, bool reversed = false)
Parameters
Type Name Description
System.Single duration

The duration in seconds

System.Boolean reversed

If true start the animation in reversed state

Fields

_duration

Declaration
protected readonly float _duration
Field Value
Type Description
System.Single

Methods

AnimationStep(Single)

Declaration
protected abstract void AnimationStep(float t)
Parameters
Type Name Description
System.Single t

ConstructCoroutine()

Create a coroutine which executes the animation. Can be called by a MonoBehaviour with.

StartCoroutine(animation.ConstructCoroutine());
Declaration
public IEnumerator ConstructCoroutine()
Returns
Type Description
IEnumerator

The IEnumarator for the coroutine

Reverse()

reverse the animation This requires StartManualAnimation() to be called again before.

Declaration
public void Reverse()

StartManualAnimation()

Start a manual animation. This will remember the time when this method is called.

Declaration
public void StartManualAnimation()

UpdateAnimation()

Update the animation. This requires StartManualAnimation() to be called before.

Declaration
public bool UpdateAnimation()
Returns
Type Description
System.Boolean

True if the animation is finished

Implements

IAnmationSequence
Back to top Generated by DocFX