Show / Hide Table of Contents

Class TransformAnimatorDurationSequence

Class for animations sequences which are running for a certain duration

Inheritance
System.Object
DurationAnimationSequence
TransformAnimatorDurationSequence
Implements
IAnmationSequence
Inherited Members
DurationAnimationSequence._duration
DurationAnimationSequence.StartManualAnimation()
DurationAnimationSequence.UpdateAnimation()
DurationAnimationSequence.ConstructCoroutine()
DurationAnimationSequence.Reverse()
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 class TransformAnimatorDurationSequence : DurationAnimationSequence, IAnmationSequence

Constructors

TransformAnimatorDurationSequence(TransformAnimator, Single)

Create a new instance

Declaration
public TransformAnimatorDurationSequence(TransformAnimator transformAnimator, float duration)
Parameters
Type Name Description
TransformAnimator transformAnimator

The transform animator for the transform

System.Single duration

Duration of the animations

Methods

AnimationStep(Single)

Declaration
protected override void AnimationStep(float t)
Parameters
Type Name Description
System.Single t
Overrides
DurationAnimationSequence.AnimationStep(Single)

Custom(Action<Single>)

Add a custom animation

Declaration
public TransformAnimatorDurationSequence Custom(Action<float> action)
Parameters
Type Name Description
Action<System.Single> action

The action to call every step. The action will receive the t [0,1] value as a parameter

Returns
Type Description
TransformAnimatorDurationSequence

it self

Done()

Finishes the Sequence.

Declaration
public TransformAnimator Done()
Returns
Type Description
TransformAnimator

The TransformAnimator of the transform

LocalMove(Vector3, Vector3, Func<Single, Single>)

Add a move animation which uses the local transform position

Declaration
public TransformAnimatorDurationSequence LocalMove(Vector3 startPosition, Vector3 endPosition, Func<float, float> easeFunction = null)
Parameters
Type Name Description
Vector3 startPosition

The start position

Vector3 endPosition

The end position

Func<System.Single, System.Single> easeFunction

The ease functions to use for the interpolation

Returns
Type Description
TransformAnimatorDurationSequence

it self

LocalRotate(Quaternion, Quaternion, Func<Single, Single>)

Add a rotation animation which uses the local rotation.

Declaration
public TransformAnimatorDurationSequence LocalRotate(Quaternion startRotaion, Quaternion endRotation, Func<float, float> easeFunction = null)
Parameters
Type Name Description
Quaternion startRotaion

The start rotation

Quaternion endRotation

The end rotation

Func<System.Single, System.Single> easeFunction

The ease functions to use for the interpolation

Returns
Type Description
TransformAnimatorDurationSequence

it self

Move(Vector3, Vector3, Func<Single, Single>)

Add a move animation

Declaration
public TransformAnimatorDurationSequence Move(Vector3 startPosition, Vector3 endPosition, Func<float, float> easeFunction = null)
Parameters
Type Name Description
Vector3 startPosition

The start position

Vector3 endPosition

The end position

Func<System.Single, System.Single> easeFunction

The ease functions to use for the interpolation

Returns
Type Description
TransformAnimatorDurationSequence

it self

Rotate(Quaternion, Quaternion, Func<Single, Single>)

Add a rotation animation.

Declaration
public TransformAnimatorDurationSequence Rotate(Quaternion startRotaion, Quaternion endRotation, Func<float, float> easeFunction = null)
Parameters
Type Name Description
Quaternion startRotaion

The start rotation

Quaternion endRotation

The end rotation

Func<System.Single, System.Single> easeFunction

The ease functions to use for the interpolation

Returns
Type Description
TransformAnimatorDurationSequence

it self

Scale(Vector3, Vector3, Func<Single, Single>)

Add a scale animation.

Declaration
public TransformAnimatorDurationSequence Scale(Vector3 startScale, Vector3 endScale, Func<float, float> easeFunction = null)
Parameters
Type Name Description
Vector3 startScale

Start scale

Vector3 endScale

End scale

Func<System.Single, System.Single> easeFunction

The ease functions to use for the interpolation

Returns
Type Description
TransformAnimatorDurationSequence

it self

Implements

IAnmationSequence
Back to top Generated by DocFX