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;
}
}
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: