docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Element Layout UV 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 geometric coordinates (UV) relative to the UI element, such as a button. It allows you to determine your position within the element itself, regardless of the texture applied. It represents the relative coordinates within the layout rect of the visual element, where (0,0) is the bottom-left corner and (1,1) is the top-right corner.

    Ports

    Name Direction Type Description
    Layout UV Output Vector2 The UV coordinates for the element.

    Additional resources

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