Summary
Sets the
Animancer.AnimancerState.Time
or Animancer.AnimancerState.NormalizedTime
, but unlike those properties
this method doesn't skip Events or Root Motion between the old and new time.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- AnimancerState
Syntax
public void MoveTime(float time, bool normalized)
Remarks
The Events and Root Motion will be applied during the next animation update.
If you want to apply them immediately you can call
Animancer.AnimancerGraph.Evaluate
.
Events are triggered where old time <= event time < new time
.
Avoid calling this method more than once per frame because doing so will cause
Animation Events and Root Motion to be skipped due to an unfortunate design
decision in the Playables API. Animancer Events would still be triggered,
but only between the old time and the last new time you set
(any other values would be ignored).
Parameters
Name | Type | Description |
---|---|---|
time | float | |
normalized | bool |
Return Value
Type | Description |
---|---|
void |