Separate meshes from the same layer
-
Hello!
I create 3d maps using SketchUp and then I import them to Unity.
I import different layers to sketchup that contain only one type of data i.e. one layer for walls, one layer for rooms. I need every room in the rooms' layer to be separate object (mesh) but in the same group when i import it to Unity. Is there a (quick) way to do this?
I thought of making separate layer for every room and then group them in one group in Unity but it's a lot of manual work.
Any help will be appreciated.
-
I have no familiarity with Unity, so I will stick to the SketchUp side of this question.
Your phrasing suggests to me that, like many others who come to SketchUp from another app, you are not clear about what SketchUp's "layers" do. Unlike "layers" in many other apps, SketchUp's Layers are merely shared visibility controls that affect what shows in the SketchUp view. Multiple entities that refer to the same Layer are all either visible or hidden, but Layers do not provide any kind of structuring, grouping, or isolation beyond the fact that you can't use the selection tool to select something that is not visible.
So, "separate meshes from the same layer" is somewhat meaningless in SketchUp, as a Layer has nothing to do with whether the meshes are separate or not. To keep things separate in SketchUp you must use Groups or Components. Ungrouped ("primitive" or "loose") geometry will interact and merge with other primitive geometry regardless of what Layers they are associated with and regardless of whether those Layers are currently visible. For this reason, SketchUp meshes and TINs are usually kept in their own Groups.
-
If I interpret your question correctly...I think it can be done if you export-selected your rooms from SketchUp.
- turn on all the layers you like.
- only select the objects you want to export as a 'group'
- use export selected in fbx (?) format. Result is a single file
- importing the fbx should only contain the selected objects BUT they could be 1 object in Unity as long as Unity doesn't split them by material
-
Thank you both.
Advertisement