03-24-2022, 12:32 AM
Hello,
I apologize if this question as already been answered, I did a quick search and couldn't find and answer.
I am using Curvy to generate meshes using spline (it works great!). I want to use several generators inside of a prefab, but I can't save their content.
My setup is:
PipesGenerator (this is a prefab).
I want to use PipesGenerator instances in another prefab (in the prefab stage), let's call this prefab MyRoomPrefab.
Like so:
MyRoomPrefab
- PipesGenerator_01
- PipesGenerator_02
I can use the generator and create mesh no problem, however when I save, I get this error:
"[Curvy] Invalid operation:You initiated an operation that leads to the deletion of the Game Object 'Create Mesh_5_Mesh000', which is part of a Prefab instance.Children of a Prefab instance cannot be deleted or moved, and components cannot be reordered. You have to open the Prefab in Prefab Mode to restructure the Prefab Asset itself, or unpack the Prefab instance to remove its Prefab connection."
I am wondering if there is a way to go around this problem. I would like to avoid exporting asset manually and them using them in another gameObject. I want the source spline and the output mesh to be available in MyRoomPrefab (to enable tweaking at a later time).
Any help appreciated.
Thanks,
I apologize if this question as already been answered, I did a quick search and couldn't find and answer.
I am using Curvy to generate meshes using spline (it works great!). I want to use several generators inside of a prefab, but I can't save their content.
My setup is:
PipesGenerator (this is a prefab).
I want to use PipesGenerator instances in another prefab (in the prefab stage), let's call this prefab MyRoomPrefab.
Like so:
MyRoomPrefab
- PipesGenerator_01
- PipesGenerator_02
I can use the generator and create mesh no problem, however when I save, I get this error:
"[Curvy] Invalid operation:You initiated an operation that leads to the deletion of the Game Object 'Create Mesh_5_Mesh000', which is part of a Prefab instance.Children of a Prefab instance cannot be deleted or moved, and components cannot be reordered. You have to open the Prefab in Prefab Mode to restructure the Prefab Asset itself, or unpack the Prefab instance to remove its Prefab connection."
I am wondering if there is a way to go around this problem. I would like to avoid exporting asset manually and them using them in another gameObject. I want the source spline and the output mesh to be available in MyRoomPrefab (to enable tweaking at a later time).
Any help appreciated.
Thanks,