05-25-2022, 07:21 PM
(05-25-2022, 05:11 PM)HarvesteR Wrote: Hi,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
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.