◆ SetColor() [2/2]

static void SetColor ( this IGraphicsMultiMaterialPropertyBlockInterface  blockInterfaceToSet,
int  matIndex,
Color  color 
)
static
Parameters
blockInterfaceToSetthe interface used to access the MultiMaterialPropertyBlock that holds the color to be modified.
matIndexspecifies which material in the interface to adjust the color of
colorthe new color to assign

References MaterialPropertyBlockInterfaceExtensions.defaultColorID, IGraphicsMultiMaterialPropertyBlockInterface.GetPropertyBlock(), IGraphicsMultiMaterialPropertyBlockInterface.HasColor(), MaterialPropertyBlockInterfaceExtensions.neverRunMaterialChecks, and IGraphicsMultiMaterialPropertyBlockInterface.SetPropertyBlock().

+ Here is the call graph for this function: