Storable objects that combines a mesh and a list of materials and MaterialPropertyBlock blocks, (in the form of a MaterialsBlock class array)

Public Member Functions

 MeshAndMaterialConfigSet (Material[] startingMaterials)
 Creates an Instance of a MeshAndMaterialBlock and initializes it with the provided Material array. The mesh member will be an instantiated, with a new, uninitialized, mesh.
 
void ResetFromMaterialArray (Material[] startingMaterials)
 Initializes this MeshAndMaterialBlock's materialsBlock, based upon the provided materials. Does not affect the mesh.
 
Material[] ToMaterialArray ()
 Extracts the Materials only from this materialBlock array member, and returns them as a new array
 

Public Attributes

MaterialConfig[] materialsBlock
 The material block array used for rendering the mesh member.
 
Mesh mesh
 Mesh that is associated with the material block array in this class.
 
+ Collaboration diagram for MeshAndMaterialConfigSet: