docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    Additional resources

    • Element Opacity node
    • Element Texture UV node
    In This Article
    Back to top
    Copyright © 2026 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)