Manages a single combined mesh.This class is the core of the mesh combining API.
More...
|
override int | GetNumObjectsInCombined () |
|
override List< GameObject > | GetObjectsInCombined () |
|
Mesh | GetMesh () |
|
Transform[] | GetBones () |
|
override int | GetLightmapIndex () |
|
override int | GetNumVerticesFor (GameObject go) |
|
override int | GetNumVerticesFor (int instanceID) |
|
override void | UpdateSkinnedMeshApproximateBounds () |
|
override void | UpdateSkinnedMeshApproximateBoundsFromBones () |
|
override void | UpdateSkinnedMeshApproximateBoundsFromBounds () |
| Updates the skinned mesh approximate bounds from the bounds of the source objects. More...
|
|
override void | Apply (GenerateUV2Delegate uv2GenerationMethod) |
| Copies Mesh Baker internal data to the mesh. More...
|
|
virtual void | ApplyShowHide () |
|
override void | Apply (bool triangles, bool vertices, bool normals, bool tangents, bool uvs, bool colors, bool uv1, bool uv2, bool bones=false, GenerateUV2Delegate uv2GenerationMethod=null) |
| Apply the specified triangles, vertices, normals, tangents, uvs, colors, uv1, uv2, bones and uv2GenerationMethod. More...
|
|
int[][] | GetSubmeshTrisWithShowHideApplied () |
|
override void | UpdateGameObjects (GameObject[] gos, bool recalcBounds=true, bool updateVertices=true, bool updateNormals=true, bool updateTangents=true, bool updateUV=false, bool updateUV1=false, bool updateUV2=false, bool updateColors=false, bool updateSkinningInfo=false) |
| Updates the data in the combined mesh for meshes that are already in the combined mesh. More...
|
|
bool | ShowHideGameObjects (GameObject[] toShow, GameObject[] toHide) |
|
override bool | AddDeleteGameObjects (GameObject[] gos, GameObject[] deleteGOs, bool disableRendererInSource=true) |
|
override bool | AddDeleteGameObjectsByID (GameObject[] gos, int[] deleteGOinstanceIDs, bool disableRendererInSource) |
|
override bool | CombinedMeshContains (GameObject go) |
|
override void | ClearBuffers () |
|
override void | ClearMesh () |
|
override void | DestroyMesh () |
|
override void | DestroyMeshEditor (MB2_EditorMethodsInterface editorMethods) |
|
bool | ValidateTargRendererAndMeshAndResultSceneObj () |
|
void | BuildSceneMeshObject (GameObject[] gos=null, bool createNewChild=false) |
|
delegate void | GenerateUV2Delegate (Mesh m) |
|
virtual bool | doUV2 () |
|
virtual void | Apply () |
| Copies Mesh Baker internal data to the mesh. More...
|
|
Manages a single combined mesh.This class is the core of the mesh combining API.
It is not a component so it can be can be instantiated and used like a normal c sharp class.
override void DigitalOpus.MB.Core.MB3_MeshCombinerSingle.Apply |
( |
bool |
triangles, |
|
|
bool |
vertices, |
|
|
bool |
normals, |
|
|
bool |
tangents, |
|
|
bool |
uvs, |
|
|
bool |
colors, |
|
|
bool |
uv1, |
|
|
bool |
uv2, |
|
|
bool |
bones = false , |
|
|
GenerateUV2Delegate |
uv2GenerationMethod = null |
|
) |
| |
|
virtual |
Apply the specified triangles, vertices, normals, tangents, uvs, colors, uv1, uv2, bones and uv2GenerationMethod.
- Parameters
-
triangles | Triangles. |
vertices | Vertices. |
normals | Normals. |
tangents | Tangents. |
uvs | Uvs. |
colors | Colors. |
uv1 | Uv1. |
uv2 | Uv2. |
bones | Bones. |
uv2GenerationMethod | Uv2 generation method. This is normally method Unwrapping.GenerateSecondaryUVSet. This should be null when calling Apply at runtime. |
Implements DigitalOpus.MB.Core.MB3_MeshCombiner.
override void DigitalOpus.MB.Core.MB3_MeshCombinerSingle.UpdateGameObjects |
( |
GameObject[] |
gos, |
|
|
bool |
recalcBounds = true , |
|
|
bool |
updateVertices = true , |
|
|
bool |
updateNormals = true , |
|
|
bool |
updateTangents = true , |
|
|
bool |
updateUV = false , |
|
|
bool |
updateUV1 = false , |
|
|
bool |
updateUV2 = false , |
|
|
bool |
updateColors = false , |
|
|
bool |
updateSkinningInfo = false |
|
) |
| |
|
virtual |
Updates the data in the combined mesh for meshes that are already in the combined mesh.
This is faster than adding and removing a mesh and has a much lower memory footprint. This method can only be used if the meshes being updated have the same layout(number of vertices, triangles, submeshes). This is faster than removing and re-adding For efficiency update as few channels as possible. Apply must be called to apply the changes to the combined mesh
Implements DigitalOpus.MB.Core.MB3_MeshCombiner.