static void SetupProfiledConnection(int connId) { ProfilerDriver.connectedProfiler = ProfilerDriver.GetAvailableProfilers().FirstOrDefault(id => id == connId); Menu.SetChecked("Edit/Record", s_SlaveProfilerWindow.IsRecording()); Menu.SetChecked("Edit/Deep Profiling", ProfilerDriver.deepProfiling); EditorApplication.UpdateMainWindowTitle(); s_SlaveProfilerWindow.Repaint(); }
static void SetupProfiledConnection(int connId, bool recording, bool isPlaying) { ProfilerDriver.connectedProfiler = ProfilerDriver.GetAvailableProfilers().FirstOrDefault(id => id == connId); ProfilerDriver.profileEditor = !isPlaying; s_SlaveProfilerWindow.SetRecordingEnabled(recording); s_SlaveProfilerWindow.Repaint(); EditorApplication.UpdateMainWindowTitle(); }
private static void OnModeChangeUpdate(ModeChangedArgs args) { EditorApplication.UpdateMainWindowTitle(); SaveProjectPrefModeIndex(args.nextIndex); UnityEditorInternal.InternalEditorUtility.RepaintAllViews(); }
private static void OnModeChangeUpdate(ModeChangedArgs args) { EditorApplication.UpdateMainWindowTitle(); SaveProjectPrefModeIndex(args.nextIndex); }