Комментарии:
If array is empty use += <3
ОтветитьThanks man!
ОтветитьThis type of error can happen when there's no coding involved in unity as well. Usually going to window>layout>revert to factory settings fixes it in that case.
ОтветитьHow to loop over and array that is empty? I cant even loop though my array that is filled with items. Always index out of range...
ОтветитьBut how can we figure out which script has the error, or find the object where the error occurs? since this type of error does'nt show me anything when i try to open it in my visual studio code or monobehavior. Thanks
Ответитьthank you so much
Ответитьthanks saved a lot of time
Ответитьok, my array is a 3d, 33x4x33 array of floats, trying to access [9, 2, 9] made it throw the IndexOutOfRangeExecption, why, and what can I do about it?
EDIT: I’m an idiot, forgot to change some “x”es to “y”s and “z”s...
thank bruuhhhhhh thank you very much
ОтветитьIt didn't help me
ОтветитьIt says that an index is out of range in my array, but I don't have an array XD and it just freezes everything. I have to alt + f4 or open task manager to close it.
ОтветитьThank u so much nice solution
ОтветитьI'm getting this error, in a particular project. When I run the same code in a different project, I don't get this error whatsoever
ОтветитьThanks, that fixed my problem.
Ответитьthanks so muchhh.... <3
Ответитьthank you
ОтветитьYou should recomend people to subscribe right the second after you provide the information their looking for, especially when you are covering a topic that has viewers with anciety
ОтветитьThank you
ОтветитьIndexOutOfRangeException: Index was outside the bounds of the array.
Pawn.PossibleMove () (at Assets/Pawn.cs:43)
BoardManager.SelectChessman (System.Int32 x, System.Int32 y) (at Assets/BoardManager.cs:64)
BoardManager.Update () (at Assets/BoardManager.cs:45)
Can you help there??
Can I somehow show you script, I was so close at making 3d chess game, there were x being shown, and pawns were moving but after making some changes, neither x were shown nor pawns were moving. Though, I can play Screen, but error of index still appears.
ОтветитьSo clearly set out that I understood before you had got to my problem
Ответитьnice fix error ) good job)
ОтветитьHello, it is absolutely necessary to make the display of the code more visible. "Control" key and mouse wheel. Thank you.
Ответить