UnityEditorArguments.

ExecuteMethod Property

Summary

Execute the static method as soon as Unity opens the project, and after the optional Asset server update is complete. You can use this to do tasks such as continous integration, performing Unit Tests, making builds or preparing data. To return an error from the command line process, either throw an exception which causes Unity to exit with return code 1, or call EditorApplication.Exit with a non-zero return code. To pass parameters, add them to the command line and retrieve them inside the function using System.Environment.GetCommandLineArgs. To use -executeMethod, you need to place the enclosing script in an Editor folder. The method you execute must be defined as static.
Assembly
Cake.Unity.dll
Namespace
Cake.Unity
Containing Type
UnityEditorArguments

Syntax

public string ExecuteMethod { get; set; }

Value

Type Description
string