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); }
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; }
public static void CreateRuntimePanelDebug(IPanel panel) { var panelDebug = new PanelDebug(panel); (panel as Panel).panelDebug = panelDebug; }