Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Create mesh in Prefab
#9
Hi
I went though the package you send me and your message.

The error message you are getting is because the generator tries to delete the previously generated object to generate the new one, and this operation (deleting an object part of a prefab) is not allowed with the (not so) new prefab system without modifying the prefab asset itself.

Before Curvy 8, Curvy only printed a console error asking users to remove manually said objects from the prefab. Starting from Curvy 8, Curvy tries to do the operation on behalf of the user when it makes sense (i.e: no risk of deleting anything valuable), and displays a message prompt otherwise. The code that defines if the operation should be automatically done seems to not take into considerations cases similar to yours (prefabs inside of prefabs).

Until I dig deeper into this, and fix the problem on Curvy's side to make the automatic solution work in your case, the manual solution is still relevant, which is to delete the generated game objects (which names are in the displayed messages) from the prefab asset. You don't have to delete them one by one, you can simply, remove all the generated GOs by using the "Clear Outputs" button in the Curvy Generator's toolbar. I did this with your package, and the problem was solved.

Let me know if you I missed something in my answer.
I hope this helped.
Have a nice day

PS: about combining the generated objects in one, it is possible if you set Combine to true and Group Meshes to false, but in your case it will not avoid the issue, since still the combined object will be deleted and replaced instead of modified.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
Using Create mesh in Prefab - by Nykster - 03-24-2022, 12:32 AM
RE: Using Create mesh in Prefab - by _Aka_ - 03-24-2022, 11:53 AM
RE: Using Create mesh in Prefab - by _Aka_ - 03-24-2022, 11:57 AM
RE: Using Create mesh in Prefab - by Nykster - 03-24-2022, 03:25 PM
RE: Using Create mesh in Prefab - by _Aka_ - 03-24-2022, 06:39 PM
RE: Using Create mesh in Prefab - by Nykster - 03-24-2022, 08:51 PM
RE: Using Create mesh in Prefab - by _Aka_ - 03-25-2022, 12:36 PM
RE: Using Create mesh in Prefab - by Nykster - 03-25-2022, 01:54 PM
RE: Using Create mesh in Prefab - by _Aka_ - 03-28-2022, 02:24 PM
RE: Using Create mesh in Prefab - by Nykster - 03-28-2022, 10:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a way to generate UVs along deformed and copied mesh? kubak 1 320 03-18-2026, 08:34 PM
Last Post: _Aka_
  Create Game Object Renaming Options rickgplus 1 937 09-23-2025, 09:33 AM
Last Post: _Aka_
  Replace deform mesh on volume spots Kokoriko49 1 2,327 06-09-2025, 06:49 PM
Last Post: _Aka_
  Mesh Generation between two splines vatan 4 3,638 02-14-2025, 07:11 AM
Last Post: vatan

Forum Jump: