- Home /
Accessing GameObject by Tag in Runtime
![`alt text`][1]Hi,
I have problem when i want to access gameObject created in runtime. I decided to do it by tag, so it works. It returns exact count of objects, and it works perfectly fine in editor, just as i want it to work. But when i build it on android i have error because when i try to access to name property of all the gameObjects, it returns for each gameObject name as 'New Game Object' (checked in monitor.bat) and whole executing code breaks after, but in editor it returns name properties just it should be .
Anyone any suggestions ?
Thanks!
Unity 2018.2.18
can you provide picture of your code, Creation of game objects and retrieving them
Answer by ProNoob2 · Dec 11, 2018 at 11:01 AM
Are the gamobjects already present in the hierarchy or are u instantiating them?
Your answer
Follow this Question
Related Questions
GameObjects Array Problem 2 Answers
Tracing Letters in Unity2D 0 Answers
Unable to complete SSL connection 0 Answers
Project scripts stop working after building it in Android 1 Answer
Significant frame drop when switching to Android platform 1 Answer