Search Unity

Access UV of full UI Text and not per character

Discussion in 'Shaders' started by jgmakes, Aug 6, 2020.

  1. jgmakes

    jgmakes

    Joined:
    Jan 10, 2019
    Posts:
    75
    I'm trying to calculate colors based on the UV position relative to the entire UI Text field, but the only UV I can access is per character.



    How can I get the UV relative to the full object/mesh? Is that not possible with UI Text?

    My shader is based off of the UI-Default.shader.

    Thank you!