Skip to main content

static EZRecolorBaker

public static class EZRecolorBaker{}

Base Class for the EZRecolor Baker, which bakes EZRecolor Templates into Texture Files, Materials and Prefabs.

Static Properties

PropertyTypeDescription
EZRVersionstringVersion of the EZRecolor Baker installed

Static Methods

MethodReturn TypeDescription
AddPathSlashstringAdd a slash to the end of a string if there is no slash. Useful to sanitize path inputs.
BakeTexturesFromTemplatestringExport an EZRecolor prefab into Textures, Materials and new Prefabs via an EZRecolor Template.
CalculateTotalEZRFieldsintGet the amount of EZRecolor properties a material has (they are named "_ColorReplacement#" where # is the ID).
GetEZRecolorBakerVersionstringGet the current version number of EZRecolor Baker installed.

Delegates

DelegateParametersDescription
OnBakeCompleteEventGameObject, EZRecolor.EZRecolorTemplateFires when a bake has been successfully completed.
OnBakeFailEventGameObject, EZRecolor.EZRecolorTemplate, stringFires when a bake has failed to complete.
OnBakePreInitializeEventGameObject, EZRecolor.EZRecolorTemplateFires when a bake has been requested. To properly handle bake failure, use onBakeStart instead.
OnBakeStartEventGameObject, EZRecolor.EZRecolorTemplateFires when a bake has successfully started.