Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Custom UI Text Shader

Discussion in 'Shaders' started by ToshoDaimos, Oct 15, 2017.

  1. ToshoDaimos

    ToshoDaimos

    Joined:
    Jan 30, 2013
    Posts:
    679
    I would like to have a custom text shader for UI Text components. How can I access glyph texture which is needed for drawing each character?
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,329
    It's the _MainTex. Unity displays a quad with the UVs preset to the needed glyph for each character, basically like any other sprite.