Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 private static void OnModeChangeUpdate(ModeChangedArgs args)
 {
     EditorApplication.UpdateMainWindowTitle();
     SaveProjectPrefModeIndex(args.nextIndex);
     UnityEditorInternal.InternalEditorUtility.RepaintAllViews();
 }
Ejemplo n.º 4
0
 private static void OnModeChangeUpdate(ModeChangedArgs args)
 {
     EditorApplication.UpdateMainWindowTitle();
     SaveProjectPrefModeIndex(args.nextIndex);
 }