Beispiel #1
0
 private void HandleDrawingStartStopButton()
 {
     loggingEnabled.boolValue =
         InspectorControls.DrawStartStopButton(
             Script.LoggingEnabled,
             Script.EnableOnPlay,
             null);
 }
Beispiel #2
0
        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();
        }