Пример #1
0
        private void DrawComponent(WindowComponent comp, string name, Rect r, GUIStyle background)
        {
            if (comp == null)
            {
                return;
            }

            if (Event.current.type != EventType.Layout)
            {
                comp.OnPreviewGUI(r, background);
            }
        }