AnimancerEvent.Sequence.

AnimancerEvent.

Add(int, float, Action) Method

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.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
AnimancerEvent.Sequence

Syntax

public int Add(int indexHint, float normalizedTime, Action callback)

Remarks

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.

Parameters

Name Type Description
indexHint int
normalizedTime float
callback Action

Return Value

Type Description
int

See Also

  • Animancer.OptionalWarning.DuplicateEvent