Explore the properties and settings you can use to customize the default Canvas shaderA program that runs on the GPU. More info
See in Glossary graph in the Universal Render PipelineA series of operations that take the contents of a Scene, and displays them on a screen. Unity lets you choose from pre-built render pipelines, or write your own. More info
See in Glossary (URP). You can apply Canvas shader graph materials to user interface elements you create using the Unity UI (uGUI) package.
The default Fragment Context contains the following Blocks. Which Blocks display might change depending on the graph settings.
| Input | Type | Description |
|---|---|---|
| Base Color | Vector3 | Sets the base color of the material. The default is Color.grey. |
| Alpha | Float | Sets the alpha of the material. The range is 0 to 1. The default is 1. |
| Emission | Float3 | Sets the color the material emits as a light source. The default is black. For more information, refer to Add light emission to a material |
| Alpha Clip Threshold | Float | Sets the minimum alpha value for a pixelThe smallest unit in a computer image. Pixel size depends on your screen resolution. Pixel lighting is calculated at every screen pixel. More info See in Glossary to be visible. The range is 0 to 1. The default is 0.5. This property is only available if you enable Alpha Clipping in the graph settings. |
Explore the shader graph settings you can use to customize the Fragment context.
For more details about graph settings that are common to all shader graph shaders, refer to Graph Settings tab.
| Setting | Description |
|---|---|
| Alpha Clipping | Discards pixels if their alpha value is lower than a threshold value. Enabling this setting adds the Alpha Clip Threshold Block to the Fragment context. |
| Disable Color Tint | Prevents Shader Graph tinting the spriteA 2D graphic objects. If you are used to working in 3D, Sprites are essentially just standard textures but there are special techniques for combining and managing sprite textures for efficiency and convenience during development. More info See in Glossary with the Color property of the sprite. If you enable this setting, use a Vertex Color Node to access the Color property of the sprite. |
| Custom Editor GUI | Renders a custom editor GUI in the InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info See in Glossary window of the material. Enter the name of the GUI class in the field. For more information, refer to Control material properties in the Inspector window. |