Esempio n. 1
0
        public static void RepaintOverlayPanel(BaseRuntimePanel panel)
        {
            using (s_RepaintProfilerMarker.Auto())
                panel.Repaint(Event.current);
#if UNITY_EDITOR
            (panel.panelDebug?.debuggerOverlayPanel as Panel)?.Repaint(Event.current);
#endif
        }
Esempio n. 2
0
        public static void RepaintOverlayPanel(BaseRuntimePanel panel)
        {
            var oldCam = Camera.current;
            var oldRT  = RenderTexture.active;

            Camera.SetupCurrent(null);
            RenderTexture.active = null;

            using (s_RepaintProfilerMarker.Auto())
                panel.Repaint(Event.current);
            (panel.panelDebug?.debuggerOverlayPanel as Panel)?.Repaint(Event.current);

            Camera.SetupCurrent(oldCam);
            RenderTexture.active = oldRT;
        }