Answer the question
In order to leave comments, you need to log in
How to assign game objects to an array in Unity?
Such a question, for example, I have an array with numbers from 1 to 10 and I need to assign a GameObject to each element of the array. In principle, it can be implemented through a switch case and a public access modifier to the GameObject, but I would like to optimize the code a little, thanks in advance
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question