void PeerReload() { if (SocketUdp.GetUdpConnectionsCount() != 0) { udpInfoTreeView.Reload(); } Repaint(); }
void OnGUI() { RenderHeadPanel(); if (EnableAutoReload && SocketUdp.GetUdpConnectionsCount() != c_count) { PeerReload(); c_count = SocketUdp.GetUdpConnectionsCount(); } SplitterGUILayout.BeginVerticalSplit(this.splitterState, EmptyLayoutOption); { RenderTable(); } SplitterGUILayout.EndVerticalSplit(); }