namespace UnityEngine.UI
{
///
/// Use this interface to modify a Material that renders a Graphic. The Material is modified before the it is passed to the CanvasRenderer.
///
///
/// When a Graphic sets a material that is passed (in order) to any components on the GameObject that implement IMaterialModifier. This component can modify the material to be used for rendering.
///
public interface IMaterialModifier
{
///
/// Perform material modification in this function.
///
/// The material that is to be modified
/// The modified material.
Material GetModifiedMaterial(Material baseMaterial);
}
}