Interface IAnimatorContext
- Namespace
- TMPEffects.Components.Animator
- Assembly
- TMPEffects.dll
To be used with TMPAnimator.
Contains context data of the respective TMPAnimator.
public interface IAnimatorContext
Properties
Animator
The animating TMPAnimator.
TMPAnimator Animator { get; }
Property Value
DeltaTime
The current delta time (=> time since last animation update).
float DeltaTime { get; }
Property Value
PassedTime
The time that has passed since the animator began animating.
float PassedTime { get; }
Property Value
ScaleAnimations
Whether animations are scaled.
bool ScaleAnimations { get; }
Property Value
ScaleUniformly
Whether to scale animations uniformly (based on the default font size of the animator)
or on a per character basis.
Ignored if ScaleAnimations is false.
bool ScaleUniformly { get; }
Property Value
UseScaledTime
Whether animations use scaled time.
bool UseScaledTime { get; }
Property Value
Methods
StateTime(int)
Check how long the CharData at the given index has been in its current VisibilityState.
Generally, to be used with show and hide animations.
float StateTime(int index)
Parameters
index
intThe index of the character to check.
Returns
- float
How long the CharData at the given index has been in its current VisibilityState.
StateTime(CharData)
Check how long the passed CharData has been in its current VisibilityState.
Generally, to be used with show and hide animations.
float StateTime(CharData cData)
Parameters
cData
CharDataThe character to check.
Returns
- float
How long the passed CharData has been in its current VisibilityState.
VisibleTime(int)
Check how long the CharData at the given index has been visible.
float VisibleTime(int index)
Parameters
index
int
Returns
VisibleTime(CharData)
Check how long the passed CharData has been visible.
float VisibleTime(CharData cData)
Parameters
cData
CharDataThe character to check.