Action Unity
Execute Unity Method
Executes a static method on a Unity editor script via reflection, or invokes a menu item. Requires the Project Succession package.
Node IDUnityExecuteMethodAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Execution Mode execution_mode | enum | Yes | StaticMethod | How to execute the code |
Type Name type_name | string | No | — | For StaticMethod mode - the fully qualified type name, e.g., "MyNamespace.MyEditorScript" |
Method Name method_name | string | No | — | For StaticMethod mode - the static method to invoke, e.g., "DoSomething" |
Menu Item Path menu_item_path | string | No | — | For MenuItem mode - the menu path to execute, e.g., "Tools/My Tool/Run" |
Arguments (JSON) arguments | string | No | — | Optional JSON array of arguments to pass to the method, e.g., ["arg1", 42, true] |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | — |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
Result output0 | object | unity_method_result | — |