M
M
MeRRFiS2021-01-09 14:26:45
Unity
MeRRFiS, 2021-01-09 14:26:45

Why might the order of elements in an array be wrong?

Good afternoon forum! While checking out my game on my phone, I noticed that some of the objects I had arrayed with FindGameObjectsWithTag were not in the correct order. For example, if in the editor I have objects 1, 2, 3, 4, then during the check in the editor itself they will be in the correct order 1 - 2 - 3 - 4, and on the phone the objects are already in the order 4 - 1 - 2 - 3 or 3 - 2 - 4 - 1 which breaks the whole game. Please tell me what could be causing this error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2021-01-09
@MeRRFiS

There is no order, just all objects with the given tag are returned.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question