Ejemplo n.º 1
0
 static object HandleToggleRecording(string eventType, object[] args)
 {
     s_SlaveProfilerWindow.Focus();
     s_SlaveProfilerWindow.SetRecordingEnabled(!ProfilerDriver.enabled);
     InternalEditorUtility.RepaintAllViews();
     return(s_SlaveProfilerWindow.IsRecording());
 }
Ejemplo n.º 2
0
            static object HandleToggleRecording(string eventType, object[] args)
            {
                var isPlaying = Convert.ToBoolean(args[0]);

                s_SlaveProfilerWindow.Focus();
                ProfilerDriver.profileEditor = !isPlaying;
                s_SlaveProfilerWindow.SetRecordingEnabled(!ProfilerDriver.enabled);

                return(s_SlaveProfilerWindow.IsRecording());
            }