public override void OnInspectorGUI() { DrawDefaultInspector(); OrderScript orderScript = (OrderScript)target; if (GUILayout.Button("Order All Selected")) { orderScript.SelectGameObjects(); } }