//try this! using UnityEngine; using UnityEditor; [InitializeOnLoad] public class Startup { static Startup() { Debug.Log("Up and running"); } } //https://docs.unity3d.com/Manual/RunningEditorCodeOnLaunch.html