Created
May 6, 2019 21:36
-
-
Save boformer/100f601793fe78b732caaab1e6503a69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var netManager = NetManager.instance; | |
for (ushort n = 0; n < NetManager.MAX_NODE_COUNT; n++) | |
{ | |
if ((netManager.m_nodes.m_buffer[n].m_flags & NetNode.Flags.Created) != NetNode.Flags.None) | |
{ | |
var segmentCount = netManager.m_nodes.m_buffer[n].CountSegments(); | |
if (segmentCount == 0) | |
{ | |
Debug.Log("Releasing ghost node " + n); | |
netManager.ReleaseNode(n); | |
} | |
} | |
} |
Better start from scratch with image overlay
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://youtu.be/o4NLa2QDl4I