private void HandleDrawingStartStopButton() { loggingEnabled.boolValue = InspectorControls.DrawStartStopButton( Script.LoggingEnabled, Script.EnableOnPlay, null); }
private void OnGUI() { EditorGUILayout.BeginHorizontal(); // Draw Start/Stop button. LoggerInstance.LoggingEnabled = InspectorControls.DrawStartStopButton( LoggerInstance.LoggingEnabled, LoggerInstance.EnableOnPlay, null); // Draw -> button. if (GUILayout.Button("->", GUILayout.Width(30))) { EditorGUIUtility.PingObject(LoggerInstance); Selection.activeGameObject = LoggerInstance.gameObject; } EditorGUILayout.EndHorizontal(); Repaint(); }