isRunning method
Returns true if the action’s time is currently running.
In addition to being activated in the mixer (see isScheduled) the following conditions must be fulfilled: paused is equal to false, enabled is equal to true,
timeScale is different from 0
, and there is no
scheduling for a delayed start (startAt).
Note: isRunning
being true doesn’t necessarily mean that the animation
can actually be seen. This is only the case, if weight is
additionally set to a non-zero value.
Implementation
bool isRunning() {
return enabled &&
!paused &&
timeScale != 0 &&
_startTime == null &&
mixer.isActiveAction(this);
}