Dynamic creation of gameobjects(Unity 3D)

To dynamically create game objects, we use Instantiate keyword.
In the awake function, we first place the gameobjects during runtime based on a specified position.
It is possible a uniform layout might be generated so use System.Random() so as to generate a random number and based on its value we generate different game objects based on different layouts.
ab-->land
ba-->bridge


Comments