◆ SetMainTexture() [1/2]

static void SetMainTexture ( this IGraphicsMaterialPropertyBlockInterface  blockInterfaceToSet,
Texture  tex 
)
static
Parameters
blockInterfaceToSetthe interface used to access the MultiMaterialPropertyBlock that holds the texture to be modified.
texthe texture to assign to the MaterialPropertyBlock

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

+ Here is the call graph for this function: