Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add Component to created mesh?
#2
(05-25-2022, 05:11 PM)HarvesteR Wrote: Hi,

So, the problem I have is hopefully straightforward. I'd like to add a component to the generated mesh object of a curvy spline. The trouble is, if the spline then updates again, the generated mesh is recreated and I'd then need to add the component again.

Is there a way to set up the generator so that a component gets added to the mesh gameobject? 

Thanks in advance!

Cheers
Hi
Use CurvyGenerator.OnRefresh to execute custom code when a generator is update. In that custom code, attach the components you want to the generated mesh gameobjects.
Did this answer your question?
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


Messages In This Thread
Add Component to created mesh? - by HarvesteR - 05-25-2022, 05:11 PM
RE: Add Component to created mesh? - by _Aka_ - 05-25-2022, 07:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_
  Adjust radius of generated mesh via script? Shackman 1 4 03-26-2024, 01:12 PM
Last Post: _Aka_
  Not seeing mesh extended after following YT PaulM 1 3 02-02-2024, 12:01 PM
Last Post: _Aka_

Forum Jump: