Unity - Scripting API: EditorApplication.ExecuteMenuItem

docs.unity3d.com docs.unity3d.com