- Home /
Question by
everdarkangelstudios · May 27, 2014 at 12:09 AM ·
procedural-generationgeneratinggeneral programming
Generating cars in a parking garage?
I am trying to use procedural generation to make the cars that appear in my parking garage different every time the game is played. Is there a simple way to do it? My thought was to set up a spawn point in each place, give the game a list of models and textures and let it go to town. Would this kind of thing be sufficient?
Comment
Answer by meat5000 · May 27, 2014 at 12:10 AM
Stick all the types in an array, or index them and use Random.Range.
You can look up ShuffleBag, for that little bit more control.
Your answer
![](https://koobas.hobune.stream/wayback/20220613145951im_/https://answers.unity.com/themes/thub/images/avi.jpg)