Summary
Calls Animancer.AnimancerNode.OnStartFade
and starts fading the Animancer.AnimancerNode.Weight
over the course
of the Animancer.AnimancerGraph.DefaultFadeDuration
(in seconds).
Syntax
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void StartFade(float targetWeight)
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