3.1.Spline Spawner Component
This component is a front-end for spawned based on one or more splines.
It requires a Spline Container to be assigned, and one or more Prefabs to spawn.
Scaling the Root transform will also scale the (child) spawned objects. This is not desired if you’re looking to scale the Spline Container. To avoid this, set the Root transform to something that isn’t the Spline Container.
Prefabs
The (bounds) size of an assigned prefab is calculated, so that a minimum spacing can be determined.
It is calculated in this order:
- Has a LOD Group component? The LOD0 mesh bounds is used.
- Has one or more meshes? The combined size of all (child) meshes is calculated.
- Has one or more colliders? The combined size of them is calculated.
- None of the above? Assume it is 0.5 units cubed.
Note that the Transform scale is also factored in. Correctly calculating the size is important to determine the spacing of the object during distribution, and avoids objects intersecting.
Size is measured along the Z-axis (forward). Having the option to specify which axis to use is still under development, as it has many caveats.
0 of 0 users found this section helpful
If you're familiar with this asset, please consider leaving a review!
Your support is what makes complementary updates possible!