how to place gameobjects in Unity while in gameplay

I have created a game of cubes, the cube is player and other color cubes are collectible items…

But Now I want to add cubes of size 1x1x1, in the game. so that I can stack them, just like in minecraft…

can anyone tell , what should be my approach to that???

1 Answer

1

This explains exactly what you need.
Basically you have an original object and with Instantiate you copy that object. That can be a GameObject assigned in the inspector or loaded with Resources.Load or GameObject.CreatePrimitive() or many other things.

The autoconnect profiler option makes the game try to connect to your unity instance so that you can profile the app. This would allow you to find CPU spikes, bottlenecks etc. which only appear on your android device. If you enable that option, Unity with the project needs to be running and the android device needs to be connected. Don't know whether there are other requirements as well. As soon as the game starts, it will try to connect, and if sucessfull, the profiler will automaticly start showing data.