Simple class used to store a single Material and MaterialPropertyBlock in one object.
|
| MaterialConfig (Material mat) |
| Construction that creates a new MaterialBlck and populates the material member with the provided material.
|
|
|
static MaterialConfig[] | MaterialBlockArray (Material[] mats) |
| Static utility function used to generate an array of MaterialBlocks, that uses the provided materials. The difference between the input and output is that the material block array has instantiated MaterialProperties, for each material.
|
|
static Material[] | ToMaterialArray (MaterialConfig[] materialsBlock) |
| Extracts the Materials only from the provided MaterialBlock array, and returns them as a new array
|
|
|
Material | material |
| Stores the Material Reference of the MaterialBlock
|
|
MaterialPropertyBlock | materialProperties |
| Stores the MaterialPropertyBlock of the MaterialBlock. This value can be changes to affect the about of the rendered object, without affecting the referenced material.
|
|