Using Trash Spawner Blueprint

Trash Spawner Blueprint is a powerful tool for placing objects in the viewport using physics. This tool is a great way to add realism and variation to the environment by creating piles of trash.

Pro:

  • You can spawn fast multiple types of trash and create piles of trash.

  • It will look more natural and it has a variety of materials

Cons:

  • Being based on the collisions of each object, sometimes you'll have to make small adjustments to the position/rotation of the models.

How to use the tool

  1. Drag and drop the blueprint in the scene and place it above the ground.

  1. Set "Number Of Trash" and "Rate" and then Start Simulation (Shift + S) and wait until all the models are spawned.

  1. After all the meshes are spawned, you should stop the simulation (press ESC) - The models will disappear but this is normal.

  • (Optional) Check "Show Last Simulation" if you want to see the static meshes from the last simulation.

Then you can press the button "Extract Meshes" from the "Last Simulation" category to extract the static meshes in the scene.

OR

If you want to restimulate, you should press the "Clear" button from the "Last Simulation" category and simulate again.

After you extract the meshes, you can delete the blueprint.

You can set the length and width of the spawn zone:

Trash Setup

You can change the "Trash Setup" array to set which models will be spawned and for each one, you can set the scale range and the spawn chance.

You can also store Trash Setup in a data table and add it to the "Trash Setup Table". There are a few different Trash Setups Tables already in the project. You can find them in ".../Blueprints/DataTables":

Last updated