break mesh into separate game objects

Hi guys,

Is there an easy way to break a mesh up into several separate game objects? I saw one post that talks about adding multiple colliders to a mesh as children of the object, but I’d like to have the mesh itself differentiated into several game objects so I can change the color of each area separately and easily. (this is a very low poly object, under 10)

Thanks for the help.

As far as i know there is no such utility.

However, if you want different GameObjects, why not just split the mesh yourself?

Figured that might be the case. So, you’re saying to import separate pieces from the modeling software and make them child objects of the complete parent object?

Thanks for the help.

Yes, thats the general idea.

You shouldn’t even need to do that. You can’t take individual game objects from an FBX file (without breaking the connection to the asset, anyway). So when you import one into Unity, you already have the parent ready to go.

Hi Jessy,

Thanks for answering yet another of my questions. Not quite sure what you mean when you say “when you import one into Unity, you already have the parent ready to go.” Perhaps this will help. What I’m trying to do is make something akin to a dart board. Basically, it’s 10 wedges on a circular wheel. I’d want to be able to detect collisions in each wedge and also be able to change the texture color of each wedge on collision. It’s been suggested that I should use contact points and math to figure out the which wedge has been hit, but I just wanted to explore the possibility of using separate game objects or colliders to accomplish the same task.

Thanks, as always, for your help.

Create a scene in your 3D app. Drag it into your Hierarchy in Unity. You’ll have a parent game object with all the meshes as children, automatically.

Yep, it is probably faster to do it that way, even though performance won’t be as good.

Got it. Thanks. I’ll give it a try. :slight_smile:

How do u did? I have a Mesh with 2 objects inside and I want separate each in two game objects!