You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens because of NativeQuadTree.Draw tries to GetEnumerator from results, which does not exist.
Can be simply fixed by checking if results list exist like so:
if (results.IsCreated) {
foreach (var element in results) {
texture[(int) ((element.pos.x + widthAdd) * widthMult)][(int) ((element.pos.y + heightAdd) * heightMult)] = Color.green;
}
}
The text was updated successfully, but these errors were encountered:
This happens because of NativeQuadTree.Draw tries to GetEnumerator from results, which does not exist.
Can be simply fixed by checking if results list exist like so:
The text was updated successfully, but these errors were encountered: