AnimancerEvent.Sequence.

AnimancerEvent.

Add(int, AnimancerEvent) 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, AnimancerEvent animancerEvent)

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
animancerEvent AnimancerEvent

Return Value

Type Description
int