static EZRecolorBaker
public static class EZRecolorBaker{}
Base Class for the EZRecolor Baker, which bakes EZRecolor Templates into Texture Files, Materials and Prefabs.
Static Properties
| Property | Type | Description |
|---|---|---|
| EZRVersion | string | Version of the EZRecolor Baker installed |
Static Methods
| Method | Return Type | Description |
|---|---|---|
| AddPathSlash | string | Add a slash to the end of a string if there is no slash. Useful to sanitize path inputs. |
| BakeTexturesFromTemplate | string | Export an EZRecolor prefab into Textures, Materials and new Prefabs via an EZRecolor Template. |
| CalculateTotalEZRFields | int | Get the amount of EZRecolor properties a material has (they are named "_ColorReplacement#" where # is the ID). |
| GetEZRecolorBakerVersion | string | Get the current version number of EZRecolor Baker installed. |
Delegates
| Delegate | Parameters | Description |
|---|---|---|
| OnBakeCompleteEvent | GameObject, EZRecolor.EZRecolorTemplate | Fires when a bake has been successfully completed. |
| OnBakeFailEvent | GameObject, EZRecolor.EZRecolorTemplate, string | Fires when a bake has failed to complete. |
| OnBakePreInitializeEvent | GameObject, EZRecolor.EZRecolorTemplate | Fires when a bake has been requested. To properly handle bake failure, use onBakeStart instead. |
| OnBakeStartEvent | GameObject, EZRecolor.EZRecolorTemplate | Fires when a bake has successfully started. |