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

            (panel as Panel).panelDebug = panelDebug;
        }