docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Canvas material

    The Canvas Master Stack material type enables you to author Shader Graph shaders that can be applied to UGUI user interface elements.

    Create a Canvas Shader Graph

    To create a Canvas material in Shader Graph, use one of the following methods:

    • Modify an existing Shader Graph:
      1. Open the Shader Graph in the Shader Editor.
      2. In Graph Settings, select the HDRP Target. If there isn't one, go to Active Targets > Plus, and select HDRP.
      3. In the Material drop-down, select Canvas.
    • Create a new Shader Graph. Go to Assets > Create > Shader Graph > HDRP, and select Canvas Shader Graph.

    Refer to Canvas Master Stack reference for more information.

    Limitations

    HDRP treats Canvas materials the same as unlit transparent materials. You may experience sorting issues with refractive and prerefraction objects when stacking them on top of each others. You can workaround this limitation by using an Unlit transparent shadergraph for the canvas and controlling the renderqueue and sorting options.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)