- Home /
What's the Script for Combining Prefabs
Hi Unity Community!
I'm designing my game's characters using a ton of cube prefabs and I would like to combine them into a single mesh/prefab so I could use it as my player's graphics. I'm new to Unity.com and don't know where scripts are located..
Thank you for your help!
Answer by iRaMb0 · Jul 29, 2013 at 08:09 AM
I don't know if combining meshes can be done in Unity, so i have two solutions for you.
1.Use a 3RD party modelling programm ( you could use Blender 3D since it's free) and then export the model to unity( since you are talking about cubes it should be fairly easy)
2.You could create an Empty GameObject,name it PlayerGraphics(or whatever you like)and then put the prefabs in there.I think that will cause you problems later on though,if you want to go into more advanced stuff with your character
Answer by rhys_vdw · Jul 29, 2013 at 08:35 AM
Meshes can be combined in Unity Pro, but it wont do anything useful for you. (It's more of a graphics optimization).
Simply child all the cubes to one GameObject in your scene. Then drag that GameObject from the Hierarchy into the Project. It will become a prefab.