Summary
If the
Animancer.AnimancerNode.Weight
is above the Animancer.AnimancerLayer.WeightlessThreshold
,
this mode will use Animancer.AnimancerLayer.GetOrCreateWeightlessState(Animancer.AnimancerState)
to get a copy of it that is at 0
weight so it can fade the copy in while the original fades out with all other states. This allows an
animation to fade into itself.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- FadeMode
Syntax
FromStart
Remarks
This mode can be useful when you want to repeat an action while the previous animation is still fading out.
For example, if you play an 'Attack' animation, it ends and starts fading back to 'Idle', and while it is
doing so you want to start another 'Attack' with the same animation. The previous 'Attack' can't simply
snap back to the start, so you can use this mode to create a second 'Attack' state to fade in while the old
one fades out.
Using this mode repeatedly on subsequent frames will probably have undesirable effects because it will
create a new state each time. In such a situation you most likely want
Animancer.FadeMode.FixedSpeed
instead.
This mode only works for Animancer.ClipState
s.
The Fade Modes page
explains this mode in more detail.
Constant Value
Value | Type |
---|---|
2 | Int32 |