03-22-2021, 09:19 AM
(03-21-2021, 07:59 PM)digot Wrote: Is there a way to spawn the generared meshes so that it won't freeze the game?The freeze happens when too much work is done while generating the mesh. Reducing that amount of work really depends on each case. What I recommand is:
- if not already done, read this: https://curvyeditor.com/documentation/pe...tips/start
- profile the frame that makes your game freeze, and see what is taking time, and whether you need it. For example, if you don't need a mesh collider, don't generate it, or maybe generate a simpler box collider instead.
(03-21-2021, 07:59 PM)digot Wrote: Is there a way to spawn the generared meshes so that it won't freeze the game? If there is no built-in way, how can I spawn/generate the meshes one by one without having the regenerate/respawn all everytime I do .Refresh on the generator?Sorry, no automatic way, but you can duplicate your generator, and make each copy generate a parth of the mesh, and make them update alternatively. This is done in InfiniteTrack.cs, used in example scene 51
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Please consider leaving a review for Curvy, this helps immensely. Thank you.

