Exemplo n.º 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);
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
        public static void CreateRuntimePanelDebug(IPanel panel)
        {
            var panelDebug = new PanelDebug(panel);

            (panel as Panel).panelDebug = panelDebug;
        }