AnimancerNode.

StartFade(float) Method

Summary

Calls Animancer.AnimancerNode.OnStartFade and starts fading the Animancer.AnimancerNode.Weight over the course of the Animancer.AnimancerGraph.DefaultFadeDuration (in seconds).
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
AnimancerNode

Syntax

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void StartFade(float targetWeight)

Remarks

If the `targetWeight` is 0 then Animancer.AnimancerNode.Stop will be called when the fade is complete.

If the Animancer.AnimancerNode.Weight is already equal to the `targetWeight` then the fade will end immediately.

Attributes

Type Description
MethodImplAttribute

Parameters

Name Type Description
targetWeight float

Return Value

Type Description
void