First of all, I’m quite new to Unity, so any help is appreciated. I’ve been surfing the web for hours, but couldn’t find a proper solution to this.
What I would like to do: Create 100 flat Boxes with numbers on them.
What I could’ve done so far: Creating 100 flat Boxes with a static numbers on them.
My code is:
public Transform Cubes;
//loop goes here
GameObject cube = Instantiate(Cubes, new Vector3(0,0,0), transform.rotation) as GameObject;
I have the Prefab as a Box, and a 3D Text is attached to it as a child.
How can I change the text of the Child 3D Text? And after creating them, how can I loop throught them? Is there an option to name the instances for later usage?
Thank you in advance!