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 helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  I have to refresh generator manualy :( GameDeveloperek4123 4 102 10-07-2024, 05:36 PM
Last Post: _Aka_
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 51 08-30-2024, 09:19 AM
Last Post: _Aka_
  How can I set the generator to stop updating? emerrryjones 1 77 07-26-2024, 10:07 AM
Last Post: _Aka_
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 1 65 04-03-2024, 03:16 PM
Last Post: _Aka_

Forum Jump: