AnimancerEditorUtilities.

AddFadeFunction(GenericMenu, string, bool, AnimancerNode, Action<float>) Method

Summary

Adds a menu function which passes the result of Animancer.Editor.AnimancerEditorUtilities.CalculateEditorFadeDuration(Animancer.AnimancerNode,System.Single) into `startFade`.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Containing Type
AnimancerEditorUtilities

Syntax

public static void AddFadeFunction(GenericMenu menu, string label, bool isEnabled, AnimancerNode node, Action<float> startFade)

Parameters

Name Type Description
menu GenericMenu
label string
isEnabled bool
node AnimancerNode
startFade Action<float>

Return Value

Type Description
void