Element Tint node
Note
Use this node only in shaders with Material set to UI for UI Toolkit. Using it elsewhere can lead to unexpected behavior or errors. For information on how to create shaders for UI Toolkit, refer to UI Shader Graph.
Outputs the tint color of a UI element: its vertex color combined with the element's dynamic color.
UI Toolkit can override the color of an element at runtime, for example when you set UsageHints.DynamicColor. This override isn't part of the raw vertex color, so reading the vertex color directly doesn't reflect it. Use this node to get the color the element actually renders with.
The tint does not include the element's opacity. To read the opacity, use the Element Opacity node.
You can use this node in both the vertex and fragment stages.
Ports
| Name | Direction | Type | Description |
|---|---|---|---|
| Tint | Output | Vector4 | The element's tint color (vertex color combined with the dynamic color), as RGBA. |