示例#1
0
 EditorPanel(ScriptableObject ownerObject)
     : base(ownerObject, ContextType.Editor, EventDispatcher.editorDispatcher)
 {
     name                  = ownerObject.GetType().Name;
     cursorManager         = m_CursorManager;
     contextualMenuManager = s_ContextualMenuManager;
     panelDebug            = new PanelDebug(this);
     standardShader        = EditorShader;
     UpdateDrawChainRegistration(true);
 }
示例#2
0
 EditorPanel(ScriptableObject ownerObject)
     : base(ownerObject, ContextType.Editor, EventDispatcher.editorDispatcher)
 {
     name                  = ownerObject.GetType().Name;
     cursorManager         = m_CursorManager;
     contextualMenuManager = s_ContextualMenuManager;
     panelDebug            = new PanelDebug(this);
     standardShader        = EditorShader;
     updateMaterial       += OnUpdateMaterial;
 }
示例#3
0
        public static void CreateRuntimePanelDebug(IPanel panel)
        {
            var panelDebug = new PanelDebug(panel);

            (panel as Panel).panelDebug = panelDebug;
        }