Loading...
Searching...
No Matches
realvirtual.MeshCombiner Class Reference
Contains methods for combining meshes. More...
Static Public Member Functions | |
static Mesh | CombineMeshes (Transform rootTransform, MeshRenderer[] renderers, out Material[] resultMaterials) |
Combines an array of mesh renderers into one single mesh. | |
static Mesh | CombineMeshes (Transform rootTransform, SkinnedMeshRenderer[] renderers, out Material[] resultMaterials, out Transform[] resultBones) |
Combines an array of skinned mesh renderers into one single skinned mesh. | |
static Mesh | CombineMeshes (Mesh[] meshes, Matrix4x4[] transforms, Material[][] materials, out Material[] resultMaterials) |
Combines an array of meshes into a single mesh. | |
static Mesh | CombineMeshes (Mesh[] meshes, Matrix4x4[] transforms, Material[][] materials, Transform[][] bones, out Material[] resultMaterials, out Transform[] resultBones) |
Combines an array of meshes into a single mesh. | |
Detailed Description
Contains methods for combining meshes.
Member Function Documentation
◆ CombineMeshes() [1/4]
|
static |
Combines an array of meshes into a single mesh.
- Parameters
-
meshes The array of meshes to combine. transforms The array of transforms for the meshes. materials The array of materials for each mesh to combine. resultMaterials The resulting materials for the combined mesh.
- Returns
- The combined mesh.
◆ CombineMeshes() [2/4]
|
static |
Combines an array of meshes into a single mesh.
- Parameters
-
meshes The array of meshes to combine. transforms The array of transforms for the meshes. materials The array of materials for each mesh to combine. bones The array of bones for each mesh to combine. resultMaterials The resulting materials for the combined mesh. resultBones The resulting bones for the combined mesh.
- Returns
- The combined mesh.
◆ CombineMeshes() [3/4]
|
static |
Combines an array of mesh renderers into one single mesh.
- Parameters
-
rootTransform The root transform to create the combine mesh based from, essentially the origin of the new mesh. renderers The array of mesh renderers to combine. resultMaterials The resulting materials for the combined mesh.
- Returns
- The combined mesh.
◆ CombineMeshes() [4/4]
|
static |
Combines an array of skinned mesh renderers into one single skinned mesh.
- Parameters
-
rootTransform The root transform to create the combine mesh based from, essentially the origin of the new mesh. renderers The array of skinned mesh renderers to combine. resultMaterials The resulting materials for the combined mesh. resultBones The resulting bones for the combined mesh.
- Returns
- The combined mesh.