03-28-2022, 02:24 PM
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.
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.