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
- Animancer
Editor Utilities
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 |
Return Value
| Type | Description |
|---|---|
| void |