Interface that provides a standard way to access the material property block on various renderer with multiple materials.
Public Member Functions | |
void | GetPropertyBlock (out MaterialPropertyBlock dest, int matIndex) |
Matches the form of the unity Renderer function of the same name, but has an additional parameter to handle multiple materials. | |
bool | HasColor (int matIndex) |
Specifies if the material this instance uses, specified by the index has a _Color | |
bool | HasTexture (int matIndex) |
Specifies if the material this instance uses, specified by the index has a _MainTexture | |
void | RebuildPropertyBlock (int matIndex) |
This function will be invoked wen the property block needs to be rebuilt. For example, if it contains a texture, and a texture is added | |
void | SetPropertyBlock (MaterialPropertyBlock dest, int matIndex) |
Matches the form of the unity Renderer function of the same name, but has an additional parameter to handle multiple materials. | |
![]() | |
void | GetPropertyBlock (out MaterialPropertyBlock dest) |
Matches the form of the unity Renderer function of the same name. | |
bool | HasColor () |
Specifies if the material this instance uses has a _Color | |
bool | HasTexture () |
Specifies if the material this instance uses has a _MainTexture | |
void | RebuildPropertyBlock () |
This function will be invoked wen the property block needs to be rebuilt. For example, if it contains a texture, and a texture is added | |
void | SetPropertyBlock (MaterialPropertyBlock dest) |
Matches the form of the unity Renderer function of the same name. | |