03-04-2024, 11:06 AM
Hi
It is possible, either via API, or the generator:
- Via API: Go throuh all you control points and instantiate your object at each of their positions.
- Via Generator: Define the generation spots as being the control points of your spline
I hope this helped.
If and when you feel like it, please leave a review for the asset, that helps a lot.
Have a nice day
It is possible, either via API, or the generator:
- Via API: Go throuh all you control points and instantiate your object at each of their positions.
Code:
foreach (CurvySplineSegment cp in spline.ControlPointsList)
Instantiate(objectToInstantiate, cp.transform.position, spline.GetOrientationFast(cp.TF));
I hope this helped.
If and when you feel like it, please leave a review for the asset, that helps a lot.
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.