MeshBaker
|
Public Member Functions | |
delegate void | GenerateUV2Delegate (Mesh m) |
virtual bool | doUV2 () |
abstract int | GetLightmapIndex () |
abstract void | ClearBuffers () |
abstract void | ClearMesh () |
abstract void | DestroyMesh () |
abstract void | DestroyMeshEditor (MB2_EditorMethodsInterface editorMethods) |
abstract List< GameObject > | GetObjectsInCombined () |
abstract int | GetNumObjectsInCombined () |
abstract int | GetNumVerticesFor (GameObject go) |
abstract int | GetNumVerticesFor (int instanceID) |
virtual void | Apply () |
Copies Mesh Baker internal data to the mesh. More... | |
abstract void | Apply (GenerateUV2Delegate uv2GenerationMethod) |
Copies Mesh Baker internal data to the mesh. More... | |
abstract 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... | |
abstract 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... | |
abstract bool | AddDeleteGameObjects (GameObject[] gos, GameObject[] deleteGOs, bool disableRendererInSource=true) |
abstract bool | AddDeleteGameObjectsByID (GameObject[] gos, int[] deleteGOinstanceIDs, bool disableRendererInSource) |
abstract bool | CombinedMeshContains (GameObject go) |
abstract void | UpdateSkinnedMeshApproximateBounds () |
abstract void | UpdateSkinnedMeshApproximateBoundsFromBones () |
abstract void | UpdateSkinnedMeshApproximateBoundsFromBounds () |
Updates the skinned mesh approximate bounds from the bounds of the source objects. More... | |
Static Public Member Functions | |
static void | UpdateSkinnedMeshApproximateBoundsFromBonesStatic (Transform[] bs, SkinnedMeshRenderer smr) |
Updates the skinned mesh bounds by creating a bounding box that contains the bones (skeleton) of the source objects. More... | |
static void | UpdateSkinnedMeshApproximateBoundsFromBoundsStatic (List< GameObject > objectsInCombined, SkinnedMeshRenderer smr) |
Protected Attributes | |
MBVersion | _MBVersion |
MB2_LogLevel | _LOG_LEVEL = MB2_LogLevel.info |
MB2_ValidationLevel | _validationLevel = MB2_ValidationLevel.robust |
string | _name |
MB2_TextureBakeResults | _textureBakeResults |
GameObject | _resultSceneObject |
UnityEngine.Renderer | _targetRenderer |
MB_RenderType | _renderType |
MB2_OutputOptions | _outputOption |
MB2_LightmapOptions | _lightmapOption = MB2_LightmapOptions.ignore_UV2 |
bool | _doNorm = true |
bool | _doTan = true |
bool | _doCol |
bool | _doUV = true |
bool | _doUV1 |
Properties | |
static bool | EVAL_VERSION [get] |
virtual MB2_LogLevel | LOG_LEVEL [get, set] |
virtual MB2_ValidationLevel | validationLevel [get, set] |
string | name [get, set] |
virtual MB2_TextureBakeResults | textureBakeResults [get, set] |
virtual GameObject | resultSceneObject [get, set] |
virtual Renderer | targetRenderer [get, set] |
virtual MB_RenderType | renderType [get, set] |
virtual MB2_OutputOptions | outputOption [get, set] |
virtual MB2_LightmapOptions | lightmapOption [get, set] |
virtual bool | doNorm [get, set] |
virtual bool | doTan [get, set] |
virtual bool | doCol [get, set] |
virtual bool | doUV [get, set] |
virtual bool | doUV1 [get, set] |
|
pure virtual |
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle, and DigitalOpus.MB.Core.MB3_MultiMeshCombiner.
|
pure virtual |
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle, and DigitalOpus.MB.Core.MB3_MultiMeshCombiner.
|
virtual |
Copies Mesh Baker internal data to the mesh.
|
pure virtual |
Copies Mesh Baker internal data to the mesh.
uv2GenerationMethod | Uv2 generation method. This is normally editor class method Unwrapping.GenerateSecondaryUVSet |
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle.
|
pure virtual |
Apply the specified triangles, vertices, normals, tangents, uvs, colors, uv1, uv2, bones and uv2GenerationMethod.
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. |
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle.
|
pure virtual |
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle, and DigitalOpus.MB.Core.MB3_MultiMeshCombiner.
|
pure virtual |
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle, and DigitalOpus.MB.Core.MB3_MultiMeshCombiner.
|
pure virtual |
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle, and DigitalOpus.MB.Core.MB3_MultiMeshCombiner.
|
pure virtual |
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle, and DigitalOpus.MB.Core.MB3_MultiMeshCombiner.
|
pure virtual |
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle, and DigitalOpus.MB.Core.MB3_MultiMeshCombiner.
|
virtual |
delegate void DigitalOpus.MB.Core.MB3_MeshCombiner.GenerateUV2Delegate | ( | Mesh | m | ) |
|
pure virtual |
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle, and DigitalOpus.MB.Core.MB3_MultiMeshCombiner.
|
pure virtual |
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle, and DigitalOpus.MB.Core.MB3_MultiMeshCombiner.
|
pure virtual |
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle, and DigitalOpus.MB.Core.MB3_MultiMeshCombiner.
|
pure virtual |
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle, and DigitalOpus.MB.Core.MB3_MultiMeshCombiner.
|
pure virtual |
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle, and DigitalOpus.MB.Core.MB3_MultiMeshCombiner.
|
pure 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
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle, and DigitalOpus.MB.Core.MB3_MultiMeshCombiner.
|
pure virtual |
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle, and DigitalOpus.MB.Core.MB3_MultiMeshCombiner.
|
pure virtual |
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle, and DigitalOpus.MB.Core.MB3_MultiMeshCombiner.
|
static |
Updates the skinned mesh bounds by creating a bounding box that contains the bones (skeleton) of the source objects.
|
pure virtual |
Updates the skinned mesh approximate bounds from the bounds of the source objects.
Implemented in DigitalOpus.MB.Core.MB3_MeshCombinerSingle, and DigitalOpus.MB.Core.MB3_MultiMeshCombiner.
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
staticget |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |