|
MeshBaker
|
Component that handles baking materials into a combined material. More...
Public Member Functions | |
| override List< GameObject > | GetObjectsToCombine () |
| MB_AtlasesAndRects[] | CreateAtlases () |
| MB_AtlasesAndRects[] | CreateAtlases (ProgressUpdateDelegate progressInfo, bool saveAtlasesAsAssets=false, MB2_EditorMethodsInterface editorMethods=null) |
| Creates the atlases. More... | |
Static Public Member Functions | |
| static void | ConfigureNewMaterialToMatchOld (Material newMat, Material original) |
Static Public Member Functions inherited from MB3_MeshBakerRoot | |
| static bool | DoCombinedValidate (MB3_MeshBakerRoot mom, MB_ObjsToCombineTypes objToCombineType, MB2_EditorMethodsInterface editorMethods, MB2_ValidationLevel validationLevel) |
Public Attributes | |
| MB2_LogLevel | LOG_LEVEL = MB2_LogLevel.info |
| MB_MultiMaterial[] | resultMaterials = new MB_MultiMaterial[0] |
| List< GameObject > | objsToMesh |
Protected Attributes | |
| MB2_TextureBakeResults | _textureBakeResults |
| int | _atlasPadding = 1 |
| bool | _resizePowerOfTwoTextures = false |
| bool | _fixOutOfBoundsUVs = false |
| int | _maxTilingBakeSize = 1024 |
| MB2_PackingAlgorithmEnum | _packingAlgorithm = MB2_PackingAlgorithmEnum.MeshBakerTexturePacker |
| bool | _meshBakerTexturePackerForcePowerOfTwo = true |
| List< ShaderTextureProperty > | _customShaderProperties = new List<ShaderTextureProperty>() |
| List< string > | _customShaderPropNames_Depricated = new List<string>() |
| bool | _doMultiMaterial |
| Material | _resultMaterial |
Properties | |
| override MB2_TextureBakeResults | textureBakeResults [get, set] |
| virtual int | atlasPadding [get, set] |
| virtual bool | resizePowerOfTwoTextures [get, set] |
| virtual bool | fixOutOfBoundsUVs [get, set] |
| virtual int | maxTilingBakeSize [get, set] |
| virtual MB2_PackingAlgorithmEnum | packingAlgorithm [get, set] |
| bool | meshBakerTexturePackerForcePowerOfTwo [get, set] |
| virtual List< ShaderTextureProperty > | customShaderProperties [get, set] |
| virtual List< string > | customShaderPropNames [get, set] |
| virtual bool | doMultiMaterial [get, set] |
| virtual Material | resultMaterial [get, set] |
Properties inherited from MB3_MeshBakerRoot | |
| abstract MB2_TextureBakeResults | textureBakeResults [get, set] |
Component that handles baking materials into a combined material.
The result of the material baking process is a MB2_TextureBakeResults object, which becomes the input for the mesh baking.
This class uses the MB_TextureCombiner to do the combining.
This class is a Component (MonoBehavior) so it is serialized and found using GetComponent. If you want to access the texture baking functionality without creating a Component then use MB_TextureCombiner directly.
|
static |
| MB_AtlasesAndRects [] MB3_TextureBaker.CreateAtlases | ( | ) |
| MB_AtlasesAndRects [] MB3_TextureBaker.CreateAtlases | ( | ProgressUpdateDelegate | progressInfo, |
| bool | saveAtlasesAsAssets = false, |
||
| MB2_EditorMethodsInterface | editorMethods = null |
||
| ) |
Creates the atlases.
| progressInfo | Progress info is a delegate function that displays a progress dialog. Can be null |
| saveAtlasesAsAssets | if true atlases are saved as assets in the project folder. Othersise they are instances in memory |
| editorMethods | Texture format tracker. Contains editor functionality such as save assets. Can be null. |
|
virtual |
Reimplemented from MB3_MeshBakerRoot.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| MB2_LogLevel MB3_TextureBaker.LOG_LEVEL = MB2_LogLevel.info |
| List<GameObject> MB3_TextureBaker.objsToMesh |
| MB_MultiMaterial [] MB3_TextureBaker.resultMaterials = new MB_MultiMaterial[0] |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
1.8.9.1