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.
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
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
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
Heart Create beautiful curves ShiroeYamamoto 3 13 03-26-2024, 06:25 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: