AnimancerEvent.Sequence.

AnimancerEvent.

SetNormalizedTime(StringReference, 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

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public int SetNormalizedTime(StringReference 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.

Attributes

Type Description
MethodImplAttribute

Parameters

Name Type Description
name StringReference
normalizedTime float

Return Value

Type Description
int

See Also

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