- Home /
How to create road or buildings during running the game
Actually it is possible to create road or buildings during the runtime?
please give me any idea or link which is helpful?
in the game i want create city with the help of roads and building.
thanks in advance
Answer by crazyKnight · Dec 05, 2011 at 12:30 PM
Create Prefab for the road and the building and then instantiate that at run time as per your need(when and where)....
k in my game i have 5 building buttons and 1 road button . by clicking any one of them and place it on the plane it had to create the building or road. is it possible by instantiate and prefab?
if you have to instantiate them at run time then you have to use prefabs there is no other solution ...
well, technically you could build them from scratch starting with "new GameObject()", but in most cases that is just a pain in the butt that doesn't gain you anything.
Answer by jasperstocker · Apr 04, 2014 at 02:29 AM
Check out my asset BuildR for generating Buildings at runtime or in the editor.
Your answer
Follow this Question
Related Questions
Creating bitmap texture2d during runtime 0 Answers
Modifying an heightmap at runtime 2 Answers
Gradual Terrain Smoothing from a Flat Area (at Runtime) 0 Answers
what is the best way to implement minigames into my own full blown unity game. 0 Answers
Allowing users to import their own UnityScript/JavaScript into the game at run time 1 Answer