Procedural Area Spawner is a simple tool allowing for easy runtime spawning of random props within given areas.
Â
Key features :
Â
- Effortlessly spawn any gameobject within a set area defined by a Box Collider component. Areas to avoid spawning in can be set using the Layer system.
Â
- No need to place spawn points or nodes. Object positioning handled by the spawning algorithm.
Â
- Anchor plane system to automatically rest your objects against the floor, roof or walls if needed.
Â
- AABB Spawn Mode for near instantaneous "lazy" procedural space filling. Perfect for many uses such as procedural cities or filling shelves with random books.
Â
- Physical Spawn Mode for a more accurate but slower procedural space filling. Uses Box Colliders and Layers to check for other objects in the way.
Â
- Main spawn loop driven by two control variables that can be tweaked to trade how well an area is filled for faster generation or vice versa.
Â
- Works using seeded generation. Ready for use with procedural games that require a same level to generate with a given seed.
Â
- Spawn chances set on an object per object basis to have rare and common prefabs
Â
- Extensive Comments within code to help you customize the asset even further