◆ SetMainTexture() [2/2]

static void SetMainTexture ( this IGraphicsMultiMaterialPropertyBlockInterface  blockInterfaceToSet,
int  matIndex,
Texture  tex 
)
static
Parameters
blockInterfaceToSetthe interface used to access the MultiMaterialPropertyBlock that holds the texture to be modified.
matIndexspecifies which material in the interface to set the texture of
texthe new texture to assign

References MaterialPropertyBlockInterfaceExtensions.defaultTextureID, IGraphicsMultiMaterialPropertyBlockInterface.GetPropertyBlock(), IGraphicsMultiMaterialPropertyBlockInterface.HasTexture(), MaterialPropertyBlockInterfaceExtensions.neverRunMaterialChecks, IGraphicsMultiMaterialPropertyBlockInterface.RebuildPropertyBlock(), and IGraphicsMultiMaterialPropertyBlockInterface.SetPropertyBlock().

+ Here is the call graph for this function: