AnimancerEvent.Sequence.

AnimancerEvent.

SetNormalizedTime(string, float) Method

Summary

[Pro-Only] Sets the Animancer.AnimancerEvent.normalizedTime of the event with the specified `name`.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
AnimancerEvent.Sequence

Syntax

public int SetNormalizedTime(string name, float normalizedTime)

Remarks

If multiple events have the same Animancer.AnimancerEvent.normalizedTime, this method will avoid re-arranging them where calling Animancer.AnimancerEvent.Sequence.Remove(System.Int32) then Animancer.AnimancerEvent.Sequence.Add(Animancer.AnimancerEvent) would always re-add the moved event as the last one with that time.

Parameters

Name Type Description
name string
normalizedTime float

Return Value

Type Description
int

See Also

  • Animancer.AnimancerEvent.Sequence.IndexOfRequired(System.String,System.Int32)