AnimancerState.

IsApproachingTime(float) Method

Summary

Is this state currently playing towards the `normalizedTime`?
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
AnimancerState

Syntax

public bool IsApproachingTime(float normalizedTime)

Remarks

System.Single.NaN will use Animancer.AnimancerState.IsApproachingEnd.

Note that this will return true if the Animancer.AnimancerNodeBase.EffectiveSpeed is 0 or Animancer.AnimancerState.IsPlaying is false even though it isn't technically approaching the end.

This method is called by System.Collections.IEnumerator.MoveNext so this object can be used as a custom yield instruction to wait until it finishes.

Parameters

Name Type Description
normalizedTime float

Return Value

Type Description
bool