/************************************************************************************************************************/

        /// <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);
示例#2
0
 /// <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);
示例#3
0
        /************************************************************************************************************************/

        /// <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);
示例#4
0
 /// <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);
示例#5
0
 /// <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);
示例#6
0
        /************************************************************************************************************************/

        /// <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);