static object HandleToggleRecording(string eventType, object[] args) { s_SlaveProfilerWindow.Focus(); s_SlaveProfilerWindow.SetRecordingEnabled(!ProfilerDriver.enabled); InternalEditorUtility.RepaintAllViews(); return(s_SlaveProfilerWindow.IsRecording()); }
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()); }