Alright so I have a grid system that works fine and until recently I did not notice it has a fundamental flaw that is not an issue until I have more than 500 rows in the X direction.
The issue is in this function below that creates the initial array.
I know it’s 100% in this part of the logic because I even loaded just this function and printed out the length of the map and it does not add up to how many should be in there.
Example: if I have 100 Grid Size X and 100 Grid Size Y the length will be 10,000 as expected but when ever I have a Row X of higher than 500 it will not add up or maybe its rewriting the same index I am not sure but
If I set the Size of X and Y to 1000 each for example I should have a Map length of 1,000,000 but instead It gets a map length of 249,000.
You can try going into Project Settings and searching for ‘Maximum Loop Iteration Count’ and set it to a high number like 5000000. But I’m thinking you would get an error message if this was actually the reason.