Maps a list of source materials to a combined material.
More...
|
override List< GameObject > | GetObjectsToCombine () |
|
void | EnableDisableSourceObjectRenderers (bool show) |
|
virtual void | ClearMesh () |
| Clears the meshs and mesh related data but does not destroy it. More...
|
|
virtual void | DestroyMesh () |
| Clears and desroys the mesh. More...
|
|
virtual void | DestroyMeshEditor (MB2_EditorMethodsInterface editorMethods) |
|
virtual int | GetNumObjectsInCombined () |
|
virtual int | GetNumVerticesFor (GameObject go) |
|
MB3_TextureBaker | GetTextureBaker () |
| Gets the texture baker on this component or its parent if it exists More...
|
|
abstract bool | AddDeleteGameObjects (GameObject[] gos, GameObject[] deleteGOs, bool disableRendererInSource=true) |
| Adds and deletes objects from the combined mesh. More...
|
|
abstract bool | AddDeleteGameObjectsByID (GameObject[] gos, int[] deleteGOinstanceIDs, bool disableRendererInSource=true) |
| This is the best version to use for deleting game objects since the source GameObjects may have been destroyed Internaly Mesh Baker only stores the instanceID for Game Objects, so objects can be removed after they have been destroyed More...
|
|
virtual void | Apply (MB3_MeshCombiner.GenerateUV2Delegate uv2GenerationMethod=null) |
| Apply changes to the mesh. More...
|
|
virtual void | Apply (bool triangles, bool vertices, bool normals, bool tangents, bool uvs, bool colors, bool uv1, bool uv2, bool bones=false, MB3_MeshCombiner.GenerateUV2Delegate uv2GenerationMethod=null) |
| Applys the changes to flagged properties of the mesh. More...
|
|
virtual bool | CombinedMeshContains (GameObject go) |
|
virtual 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) |
|
virtual void | UpdateSkinnedMeshApproximateBounds () |
|
virtual void | UpdateSkinnedMeshApproximateBoundsFromBones () |
|
virtual void | UpdateSkinnedMeshApproximateBoundsFromBounds () |
|
Maps a list of source materials to a combined material.
Included in MB2_TextureBakeResults
Abstract root of the mesh combining classes
virtual bool MB3_MeshBakerCommon._ValidateForUpdateSkinnedMeshBounds |
( |
| ) |
|
|
protectedvirtual |
abstract bool MB3_MeshBakerCommon.AddDeleteGameObjects |
( |
GameObject[] |
gos, |
|
|
GameObject[] |
deleteGOs, |
|
|
bool |
disableRendererInSource = true |
|
) |
| |
|
pure virtual |
Adds and deletes objects from the combined mesh.
gos and deleteGOs can be null. You need to call Apply or ApplyAll to see the changes. objects in gos must not include objects already in the combined mesh. objects in gos and deleteGOs must be the game objects with a Renderer component This method is slow, so should be called as infrequently as possible.
- Returns
- The first generated combined mesh
- Parameters
-
gos | gos. Array of objects to add to the combined mesh. Array can be null. Must not include objects already in the combined mesh. Array must contain game objects with a render component. |
deleteGOs | deleteGOs. Array of objects to delete from the combined mesh. Array can be null. |
disableRendererInSource | Disable renderer component on objects in gos after they have been added to the combined mesh. |
fixOutOfBoundUVs | Whether to fix out of bounds UVs in meshes as they are being added. This paramater should be set to the same as the combined material. |
Implemented in MB3_MeshBaker, and MB3_MultiMeshBaker.
abstract bool MB3_MeshBakerCommon.AddDeleteGameObjectsByID |
( |
GameObject[] |
gos, |
|
|
int[] |
deleteGOinstanceIDs, |
|
|
bool |
disableRendererInSource = true |
|
) |
| |
|
pure virtual |
This is the best version to use for deleting game objects since the source GameObjects may have been destroyed Internaly Mesh Baker only stores the instanceID for Game Objects, so objects can be removed after they have been destroyed
Implemented in MB3_MeshBaker, and MB3_MultiMeshBaker.
virtual void MB3_MeshBakerCommon.Apply |
( |
MB3_MeshCombiner.GenerateUV2Delegate |
uv2GenerationMethod = null | ) |
|
|
virtual |
Apply changes to the mesh.
All channels set in this instance will be set in the combined mesh.
virtual void MB3_MeshBakerCommon.Apply |
( |
bool |
triangles, |
|
|
bool |
vertices, |
|
|
bool |
normals, |
|
|
bool |
tangents, |
|
|
bool |
uvs, |
|
|
bool |
colors, |
|
|
bool |
uv1, |
|
|
bool |
uv2, |
|
|
bool |
bones = false , |
|
|
MB3_MeshCombiner.GenerateUV2Delegate |
uv2GenerationMethod = null |
|
) |
| |
|
virtual |
Applys the changes to flagged properties of the mesh.
This method is slow, and should only be called once per frame. The speed is directly proportional to the number of flags that are true. Only apply necessary properties.
virtual void MB3_MeshBakerCommon.ClearMesh |
( |
| ) |
|
|
virtual |
Clears the meshs and mesh related data but does not destroy it.
virtual bool MB3_MeshBakerCommon.CombinedMeshContains |
( |
GameObject |
go | ) |
|
|
virtual |
virtual void MB3_MeshBakerCommon.DestroyMesh |
( |
| ) |
|
|
virtual |
Clears and desroys the mesh.
Clears mesh related data.
void MB3_MeshBakerCommon.EnableDisableSourceObjectRenderers |
( |
bool |
show | ) |
|
virtual int MB3_MeshBakerCommon.GetNumObjectsInCombined |
( |
| ) |
|
|
virtual |
virtual int MB3_MeshBakerCommon.GetNumVerticesFor |
( |
GameObject |
go | ) |
|
|
virtual |
override List<GameObject> MB3_MeshBakerCommon.GetObjectsToCombine |
( |
| ) |
|
|
virtual |
Gets the texture baker on this component or its parent if it exists
- Returns
- The texture baker.
virtual void MB3_MeshBakerCommon.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 |
virtual void MB3_MeshBakerCommon.UpdateSkinnedMeshApproximateBounds |
( |
| ) |
|
|
virtual |
virtual void MB3_MeshBakerCommon.UpdateSkinnedMeshApproximateBoundsFromBones |
( |
| ) |
|
|
virtual |
virtual void MB3_MeshBakerCommon.UpdateSkinnedMeshApproximateBoundsFromBounds |
( |
| ) |
|
|
virtual |
string MB3_MeshBakerCommon.bakeAssetsInPlaceFolderPath |
bool MB3_MeshBakerCommon.clearBuffersAfterBake = true |
List<GameObject> MB3_MeshBakerCommon.objsToMesh |
GameObject MB3_MeshBakerCommon.resultPrefab |
bool MB3_MeshBakerCommon.useObjsToMeshFromTexBaker = true |
The documentation for this class was generated from the following file: