When I create a Cube and drag it into the prefabs folder, it retains the Mesh. I am using the package - Shapes on a Plane (Unity Asset Store - The Best Assets for Game Making) to create custom shapes. I am able to create a custom shape fine, but when I drag it into the Prefab folder, it loses the Mesh. Any idea what I am missing?
Thanks,
Syed
I drag the prefab back into the scene and the Mesh is now there. I need to use the prefab to instantiate it dynamically. So I still need the prefab to show a Mesh in the mesh filter.
The problem is that the mesh in the editor is generated so it loses the mesh filter component on dragging it to the prefab folder. I found a workaround from another Unity post. Here is for reference. You basically create an editor script to save the object as a prefab in the scene view.
1 Like