/************************************************************************************************************************/ /// <summary>Modify the current fade to use the specified `calculateWeight` delegate.</summary> /// <example>See <see cref="CustomFade"/>.</example> /// <remarks>The `calculateWeight` should follow the <see cref="OptionalWarning.CustomFadeBounds"/> guideline.</remarks> public static void Apply(AnimancerPlayable animancer, Func <float, float> calculateWeight) => Delegate.Acquire(calculateWeight).Apply(animancer);
/// <summary>Modify the current fade to use the specified `function` to calculate the weight.</summary> /// <example>See <see cref="CustomFade"/>.</example> public static void Apply(AnimancerState state, Interpolation.Function function) => Delegate.Acquire(function.GetDelegate01()).Apply(state);
/************************************************************************************************************************/ /// <summary>Modify the current fade to use the specified `function` to calculate the weight.</summary> /// <example>See <see cref="CustomFade"/>.</example> public static void Apply(AnimancerPlayable animancer, Interpolation.Function function) => Delegate.Acquire(function.GetDelegate01()).Apply(animancer);
/// <summary>Modify the current fade to use the specified `calculateWeight` delegate.</summary> /// <example>See <see cref="CustomFade"/>.</example> public static void Apply(AnimancerState state, Func <float, float> calculateWeight) => Delegate.Acquire(calculateWeight).Apply(state);
/// <summary>Modify the current fade to use the specified `function` to calculate the weight.</summary> /// <example>See <see cref="CustomFade"/>.</example> public static void Apply(AnimancerState state, Easing.Function function) => Delegate.Acquire(function.GetDelegate()).Apply(state);
/************************************************************************************************************************/ /// <summary>Modify the current fade to use the specified `function` to calculate the weight.</summary> /// <example>See <see cref="CustomFade"/>.</example> public static void Apply(AnimancerPlayable animancer, Easing.Function function) => Delegate.Acquire(function.GetDelegate()).Apply(animancer);