Summary
[Pro-Only] An optional function for modifying the fade curve.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- FadeGroup
Syntax
public Func<float, float> Easing { get; set; }
Remarks
The
Animancer.FadeGroup.NormalizedTime is passed in and the return value is multiplied by the
Animancer.FadeGroup.TargetWeight to set the Animancer.AnimancerNode.Weight of the Animancer.FadeGroup.FadeIn.
Animancer.Easing has various common functions that could be used here.
Note that the Animancer.AnimancerNode.FadeGroup may be null
right after playing something if it was already playing, so
Animancer.FadeGroupExtensions.SetEasing(Animancer.FadeGroup,Animancer.Easing.Function)
Animancer.FadeGroupExtensions.SetEasing(Animancer.FadeGroup,System.Func{System.Single,System.Single})
can be used to avoid needing to null-check it.
Animancer Lite ignores this property in runtime builds.
Value
| Type | Description |
|---|---|
| Func |