WEBSITE: http://wireddevelopments.com/citygenerator/
ASSET STORE: Unity Asset Store - The Best Assets for Game Making
WEBPLAYER: http://wireddevelopments.com/citygenerator/demo.php
MOBILE (Android) DEMO: http://wireddevelopments.com/citygenerator/demo.php
SCREENSHOTS: See post below.
This super simple city block generator allows you to spawn any size city you wish, using your own assets … IN SECONDS!
Think how long it would take you to create 50 city blocks in Unity. You’d have to place every single individual unique building, tree, rock,bin, fence, light post, bus stop, fire hydrant… the list goes on and on!
Well as long as you have the art, City Generator simplifies all the hard work for you. Just put all your prefabs in a folder, set the city size options then press the Generate City button… INSTANT CITY!
City Generator and Road & Traffic System now working together with the click of the “Generate City” button!
- Road & Traffic System generates the road networks, spawns the vehicles and controls their AI functionality: http://wireddevelopments.com/trafficsystem
- City Generator dynamically creators the city around the road network. http://wireddevelopments.com/citygenerator
This video shows City Generator + Road & Traffic System working together… the City Generator detailed video is below.
Works great with our other package “ROAD & TRAFFIC SYSTEM”, check this package out here: http://wireddevelopments.com/trafficsystem/
The hardcore details are below but watch the video if you don’t like to read
Below explains this super simple city block generator in full detail.
Be sure to watch the video to see City Generator in action!
How to use the City Generator system
- Drop the “CityGenerator” prefab into your scene.
- Set your city “Width” and “Height” to determine how big your generated city needs to be. Then set the “Ground Position” (default is zero).
- Set your city “Block Width” min and max. This determines how many buildings (objects) are placed before a street space is added.
- Set your “Street Width” to determine the width of your streets.
- Drop all your prefab objects into the “City Generator/Prefabs/Active” folder so the system knows what objects to use when generating your city.
- Add the “CityGeneratorAsset.cs” script to all your prefabs you want to use in the City Generator system. This can be down in one step by selecting all your prefabs and adding the component in the Inspector.
- Use Clear Zones to stop certain areas having objects spawn in them.
Additional Options
- Adjust the frequency of how often each object should be generated by assign each object a LOW, MEDIUM or HIGH status in their “CityGeneratorAsset.cs”.
- Easily determine the ground position for each object as the pivot point might not be at the base of the object.
- Set the spawn rotation (fixed or randomised) for any object.
- Determine if an object needs to be flipped for opposite sides of the road when spawned.
- All object sizes are calculated automatically using their renderer bounding box but you can manually add a collider to the object to determine its size if you need to determine exactly how the system should determine that objects size.
… best of all, this system can be used to generate anything. For us it suited City Generation but this system takes unlimited objects and spawns them in a grid with custom spacing so if you think your game could easily benefit from automatically creating a layout in seconds, you need to get City Generator for Unity3D!
PLEASE NOTE: The models in the screenshots and video ARE NOT included in the City Generator package. They are only examples to show how the system can use anything your throw at it quickly and easily. For reference if anyone wants them they are from an awesome creator called K4!