public override void OnInspectorGUI() { DevConsoleAddCommand myTarget = (DevConsoleAddCommand)target; if (GUILayout.Button("Create Command")) { PopupWindow.Init(myTarget); } }