public abstract class TrivialAnimationBehaviour

Inherits MonoBehaviour

Basic procedural animation controller

Fields

public float Duration

Duration of the animation in seconds


public bool Loop

Should the animation loop?


public bool PlayOnStart

Should the animation play when the behaviour starts?


Properties

public bool IsPlaying { get; private set; }

Is the animation currently playing?


Methods

public void Play()

Play the animation. Aborts already playing animations.


public void Stop()

Stop the animation if it is playing.


protected abstract void AnimationTick(float progress)

This is called for every frame that the animation is playing.The current animation progress, ranging from 0.0 to 1.0, is passed to the function.The implementation should do the actual animating bit considering the given value.


public void ForceSetProgress(float progress)

No description provided


Attention!

This member is obsolete and should not be used. It is a remnant from the past.

bi bij bibi