- Home /
How to join 2 objects together
how to merge two objects together using programming i know how to to merge prefabs but i want to merge mesh data and make it have the same behaviour as if it was a single prefab or mesh
Answer by gordiri · Jan 25, 2018 at 10:02 AM
Here is the answer https://docs.unity3d.com/ScriptReference/Mesh.CombineMeshes.html
You can create script that executes in edit mode and then save new mesh using AssetDatabase.CreateAsset and then AssetDatabase.SaveAssets. Format of file should be .asset
Your answer
![](https://koobas.hobune.stream/wayback/20220612151242im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Collision mesh data problem in Unity WebPlayer 2 Answers
Pointcast? - Raycast Point X from same Point X 0 Answers
Particles going through mesh collider 1 Answer
Generated mesh collider on a generated mesh becomes a big box instead of taking mesh's shape 1 Answer
Breakdown non-convex complex Meshes to Convex parts 2 Answers