🎯Scattering

Opening the editor

Once the plugins are all installed, you can open the Scriptable Tools in the top left of your screen

In this mode, you will see to your left multiple tools you can use to scatter in your environment.

For a quick test, feel free to click on "Radius" and move your mouse around the world. You will see a preview of your possible result already displayed.

At any time, you can hold "ALT" to stop the spawning tool from following the mouse.

On left click, you can activate the spawning to make it permanent in the world.

Spawning on the GPU

It is possible that you don't see anything spawned on the GPU, this is normal. By default, the GPU content is spawned only at runtime (in play mode), so you don't see it in the editor mode. That said, you can enable it in the editor this way.

Click on PCGWorldActor -> Set "Treat Editor Viewport as Generation Source" to true.

Radius Scattering

Once you click on "Radius," you can see a little menu with more options like the radius, mesh collection, and scattering mode. You can ...

Increase and decrease the size with the Middle Mouse Up/Down

Tweak the final density by holding Alt + Middle Mouse Up/Down

Mesh Collection: It is the database that contains all the visuals and spawning rules. More on that later.

Radius: Determine the radius of the spawning sphere.

Density: Affects the final spawning density.

Scattering Mode: Determine if the scattering is going from the center toward the outside, or from the outside part of the sphere toward the inside. In the screenshot above, the first one is set to "Sphere Out" and the second one to Sphere In"

Point Count Mesh: Determine the number of points to spawn per meter (be cautious, as this value is multiplied by the scale).

Jitter: Add more randomization in the spawning.

Seed: Determine the seed for the spawning.

Offset: Att an offset (up or opposing the wall) for the center of the sphere.

Grid Scattering

Grid Scattering allows you to spawn vegetation or objects inside a volume and go in the top-down direction. You can...

Increase and decrease the size with the Middle Mouse Up/Down

Hold CTRL + Moving the mouse to control the size of the grid

Hold ALT + Shift + Middle Mouse Up/Down to rotate

Mesh Collection: It is the database that contains all the visuals and spawning rules. More on that later.

Size: Determine the size of the grid.

Point Distance: Determine the distance between each point inside a row.

Density: Affects the final spawning density.

Seed: Determine the seed for the spawning.

Row Count: Determine the number of rows.

Spline Scatter

Scatter objects along a spline. It also supports an angle to either spawn in a 360-degree or a specific direction.

Density: Affects the final spawning density.

Point Count Mesh: Determine the number of points to spawn per meter (be cautious, as this value is multiplied by the scale).

Jitter: Add more randomization in the spawning.

Seed: Determine the seed for the spawning.

Offset: Att an offset (up or opposing the wall) for the center of the sphere.

Angle Direction: Determine the spawning direction from the center of the spline if it's not 360 degrees.

Angle Range: Determine the total angle of the spawning along the spline.

Point Density: Determine the density of the spawning (number of attempts along the spline).

Max distance: From the center of the spline, the tool with do some raycast in every direction. This will determine how far the raycast can go.

Last updated