示例#1
0
        private void OnEnable()
        {
            m_RefreshTexture = new GUIContent(EditorGUIUtility.FindTexture("Refresh"), "Refresh shader from file");
            m_SaveTexture    = new GUIContent(EditorGUIUtility.FindTexture("SaveAs"), "save shader variants to file");

            if (m_Panel == null)
            {
                m_Panel = new TianGlyphPanel();
            }
            m_Panel.OnEnable(this);

            if (m_TabPanels == null)
            {
                m_TabPanels    = new IRemoteDebugPanel[3];
                m_TabPanels[0] = new HierarchyPanel(this);
                m_TabPanels[1] = new PatchPanel(this);
                m_TabPanels[2] = new LogPanel(this);
                foreach (var panel in m_TabPanels)
                {
                    panel.OnEnable();
                }
            }
            SwitchPanel();

            Debug.LogError("OnEnable:" + XNetUtil.GetLocalIP());
            server?.Close();
            server = new RemoteDebugServer(k_IP, RemoteDebugConfig.port);
            server.Start();
        }
 public void OnEnable()
 {
     if (m_Panel == null)
     {
         m_Panel = new TianGlyphPanel(false);
     }
     if (m_LocalPanel == null)
     {
         m_LocalPanel = new PatchLocalPanel();
     }
     if (m_RemotePanel == null)
     {
         m_RemotePanel = new PatchRemotePanel();
     }
     if (m_LogPanel == null)
     {
         m_LogPanel = new PatchLogPanel();
     }
     m_LocalPanel.OnEnable(this);
     m_RemotePanel.OnEnable(this);
     m_LogPanel.OnEnable(this);
     m_Panel.OnEnable(this);
     m_Panel.VertialLeftPercent  = 1;
     m_Panel.VertialRightPercent = 1;
     m_Panel.SetLeftTopPanel(m_LocalPanel, true);
     m_Panel.SetRightTopPanel(m_RemotePanel, true);
     m_Panel.SetRigthBottomPanel(m_LogPanel, true);
 }
示例#3
0
 private void OnEnable()
 {
     if (m_Panel == null)
     {
         m_Panel = new TianGlyphPanel();
     }
     m_Panel.OnEnable(this);
 }
示例#4
0
        private void OnEnable()
        {
            RefreshAB();
            var panelPos = GetPanelArea();

            if (m_Panel == null)
            {
                m_Panel = new TianGlyphPanel();
            }
            m_Panel.OnEnable(this);
            m_RefreshTexture    = new GUIContent(EditorGUIUtility.FindTexture("Refresh"), "Refresh AB list");
            m_StandaloneTexture = new GUIContent(EditorGUIUtility.FindTexture("BuildSettings.Standalone@2x"), "PC AB");
            m_IOSTexture        = new GUIContent(EditorGUIUtility.FindTexture("BuildSettings.iPhone@2x"), "iOS AB");
            m_AndroidTexture    = new GUIContent(EditorGUIUtility.FindTexture("BuildSettings.Android@2x"), "Android AB");
            m_SettingsTexture   = new GUIContent(EditorGUIUtility.FindTexture("d_SettingsIcon@2x"), "Open Settings panel");
            m_PlatformTextures  = new GUIContent[] {
                m_StandaloneTexture,
                m_IOSTexture,
                m_AndroidTexture
            };
            m_SearchField = new SearchField();
        }