Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Create mesh in Prefab
#1
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,
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 11 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: