- Home /
Merge 2 objects together.
What i want to do is merge 2 objects together so it becomes one game object , and turn it into a prefab . my object is an acog scope and it doesn't have a scope reticle so i put a sphere as the reticle . i want it so it becomes a prefab without the arrow showing the game object in the prefab . It's kind of hard to explain so sorry about that
Answer by CodeAssembler · Aug 05, 2013 at 04:00 AM
I don't know if I understood well, but from what I understand you can not merge two different GameObject Mesh components created directly from the Unity Editor into one only Mesh. For that you will need and external application like Blender, Maya, 3Ds, etc... and then import that new Mesh into Unity.
And even then, even the mesh will be a whole Mesh component it will most likely be detected by Unity as a 'composed' GameObject, so you will still have 'the arrow in the main GameObject' like you are saying. Just that the Mesh component will then be merged.
I hope my answer helps somehow.
Answer by voporak5 · Aug 05, 2013 at 03:56 AM
do you want to do this inside of the game or inside of unity?
if you want it inside of unity, just drag and drop your reticule onto your scope inside of the Scene Hierarchy.
then drag and drop your newly created object into your Project Menu to create a prefab.
If you want to do it inside of the game, do a script on your reticule or somewhere (idk its hard to explain an answer to a question that is hard to explain) and do (objectname).gameObject.parent = scope.gameObject or something like that
i think it is the best solution and after done this steps, change scale X value to 0.. its Worked for me.anyway. thanx
Thank you so much for this! I just started learning and this was a huge help. Cheers!
Answer by scone · Aug 21, 2013 at 02:07 AM
There's an asset for that! Go check out UniMerge on the asset store. Its an easy (and kind of fun!) To use tool that provides a color-coded, side-by-side view of the two objects and lets you selectively combine objects and transfer property values.
Full disclosure: I'm the creator of the tool, so this is kind of self-promotion. Let me know if you have questions or problems with the tool.
Your answer
![](https://koobas.hobune.stream/wayback/20220613111543im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
It is possible to export multiple Unity objects into one FBX or OBJ file? 0 Answers
How to stop a prefab from changing a variable 0 Answers
How to destroy instantiated objects. 1 Answer
How to Reference Player when Instantiating Prefab 1 Answer
How to instantiate prefab when colliding with specified prefab 1 Answer