void OnGUI() { RenderHeadPanel(); if (EnableAutoReload && SocketUdp.GetUdpConnectionsCount() != c_count) { PeerReload(); c_count = SocketUdp.GetUdpConnectionsCount(); } SplitterGUILayout.BeginVerticalSplit(this.splitterState, EmptyLayoutOption); { RenderTable(); } SplitterGUILayout.EndVerticalSplit(); }
void OnEnable() { window = this; splitterState = SplitterGUILayout.CreateSplitterState(new float[] { 75f, 25f }, new int[] { 32, 32 }, null); udpInfoTreeView = new UDPConnectionTreeView(); }