Skip to main content
Jeremias Meister - Tools & Pipeline

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

ParameterTypeRequiredDefaultDescription
Execution Mode execution_mode enum
  • StaticMethod
  • MenuItem
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

InputTypeRequiredDescription
Execute input0 object Yes —

Outputs

OutputTypeIdentifierDescription
Result output0 object unity_method_result —