Summary
[Pro-Only]
Adds the given event to this sequence. The Animancer.AnimancerEvent.Sequence.Count
is increased by one
and if required, the Animancer.AnimancerEvent.Sequence.Capacity
is doubled to fit the new event.
Syntax
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public int Add(int indexHint, float normalizedTime, Action callback)
This methods returns the index at which the event is added, which is determined by
its Animancer.AnimancerEvent.normalizedTime
to keep the sequence sorted in ascending order.
If there are already any events with the same Animancer.AnimancerEvent.normalizedTime
,
the new event is added immediately after them.
Attributes
Type |
Description |
MethodImplAttribute |
|
Parameters
Name |
Type |
Description |
indexHint |
int |
|
normalizedTime |
float |
|
callback |
Action |
|
Return Value