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(PatchPanel parent) { m_Parent = parent; if (m_SearchField == null) { m_SearchField = new SearchField(); } }
public void OnEnable(PatchPanel parent) { m_Parent = parent; if (m_SearchField == null) { m_SearchField = new SearchField(); } server?.RequestPatchFiles(clientIndex); }
public void OnEnable(PatchPanel parent) { m_Parent = parent; m_Style[0] = "OL EntryBackOdd"; m_Style[1] = "OL EntryBackEven"; m_Style[0].wordWrap = true; m_Style[1].wordWrap = true; m_Style[0].padding = new RectOffset(5, 0, 1, 1); m_Style[1].padding = new RectOffset(5, 0, 1, 1); }