Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generating GO only on CPs in Generator
#1
Hi
I want to ask if it is possible to generate GameObject from generator ONLY on ControlPoints? I want to set Rail poles on every CP transform, and I wonder if it is posible to do this from generator. Is there an option for that?
Reply
#2
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.
Code:
foreach (CurvySplineSegment cp in spline.ControlPointsList)

    Instantiate(objectToInstantiate, cp.transform.position, spline.GetOrientationFast(cp.TF));
- 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
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 1 10 04-03-2024, 03:16 PM
Last Post: _Aka_
Exclamation Extending Curvy Generator for Advanced Lofting - Feasibility Check amutp 2 4 03-27-2024, 07:25 AM
Last Post: amutp
Question Generator Canvas workflow issues Sacryn 1 7 02-02-2024, 11:22 PM
Last Post: _Aka_
  Disable Generator Rasterized Objects SAMYTHEBIGJUICY 3 5 09-01-2023, 03:38 PM
Last Post: _Aka_

Forum Jump: