How to environment modeling in Editor mode.

Combine component allows you to combine multiple meshes into one mesh. This can be useful for enviroment modeling if you want to spread a lot of objects over scene and then bake them into one static mesh. 

1.	Create Cube, this will be a ground cube which will be used for collision.

2.	Set its name to "Ground", position to [0 ,0, 0] and scale to [15, 1, 10]

3.	Create Cube and set its position to [0, 1, 0]

4.	Create Material asset, set it sname to "Red", set its Albedo color to Red and apply to Cube.

5.	Create Sphere and set its position to [0, 2, 0]

6.	Create Material asset, set it sname to "Green", set its Albedo color to Green and apply to Sphere .

You can create more different objects with different materials, but for this tutorial it will be enough just these two objects.

7.	Create empty gameobject, set its name to "Combine" and position to  [0, 0.5, 0]

8.	Add RayFire Combine component to Combine object.

9.	Select Cube and Sphere and in Hierarchy set them as children for Combine object.

10.	Select Combine object and click on Combine button.

MeshFilter with combined mesh and MeshRenderer components will be added to Combine object.

11.	Select Cube and Sphere and deactivate them to see combined mesh. 

If you are going to create prefab using combined mesh then do not forget to Export combined mesh into mesh asset first using Export Mesh button at the bottom of the Combine component, otherwise mesh will not be saved in prefab.

In this tutorial you can see basic usage of Combine component in Editor. In next tutorial you can learn how to combine runtime demolished and simulated fragments using the same setup.