Skip to content

Instantiate Random Objects In Sphere

Instantiates random weighted prefabs inside a sphere.

Parameter Description
Prefabs Weighted prefab list to pick from.
Count Number of objects to spawn.
Center Transform used as sphere center.
Radius Sphere radius for spawn positions.
Rotation Optional random rotation variation per axis.
Scale Delta Optional random scale variation per axis.
Parent Optional parent transform for created objects.
Created Optional output list of created objects.