05-03-2023, 12:07 PM
(05-02-2023, 08:09 PM)Lupos Wrote: Also as a follow up is it possible to retain a prefabs scripts? The curvable objects I'm trying to create require having logic applied to them for destruction, so far I cant seem to get that to work with the generator.
go to FluffyUnderware.Curvy.Generator.CGMeshResourceLoader.Destroy. There, find this:
Code:
obj.StripComponents(
typeof(CGMeshResource),
typeof(MeshFilter),
typeof(MeshRenderer)
);Code:
obj.StripComponents(
typeof(CGMeshResource),
typeof(MeshFilter),
typeof(MeshRenderer),
typeof(your_script)
);
Please consider leaving a review for Curvy Splines, this helps immensely. Thank you.

