Execute C# Method

Sub-action for directly calling a method defined in another C# code sub-action
Learn more about custom code actions at Guide > C# Code Actions

Using this sub-action you can directly call into methods defined in your existing Execute C# Code sub-actions.

Custom methods must be in the form of a return type of bool with no parameters:

Example
public bool MethodName()
{
  // your code here
  return true;
}
If you have the selected Execute C# Code sub-action setup for Keep Alive and Precompile on Startup you can use private variables within the class to preserve data between calls.

Configuration

Execute C# Code
Select

Select the Execute C# Code sub-action you would like to reference.

You must configure the Name field in your Execute C# Code sub-actions to display here. Read more
Method
Select

Select the method to execute

This can be any custom defined method, or even the main Execute() method.
Run on UI Thread
Toggle
Save Result to Variable
Toggle

Save the bool result of the selected method

Returning false without this option enabled will simply stop execution of the entire action. Enabling this option allows you to collect the result and also continue execution regardless of the return value.
Variable Name
Text

When Save Result to Variable is enabled, enter the name for the resulting variable here.