public override void OnInspectorGUI() { DrawDefaultInspector(); EditorGUILayout.Space(10); ObjectSpawner objectSpawner = (ObjectSpawner)target; if (GUILayout.Button("Draw Debug")) { objectSpawner.DrawDebug(); } }