Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Bug SpirteAsset won't render in front even with DistanceFieldOverlay

Discussion in 'UGUI & TextMesh Pro' started by xjjon, Dec 18, 2022.

  1. xjjon


    Apr 15, 2016
    Hi, I am using sprite asset to display some icons in my World TextMeshPro component:

    "<sprite=3> MyText"

    To get this text to always render in front of other objects in the scene, I am using the Mobile/Distance Field Overlay as suggested in this thread.


    It works for normal text but the sprite asset will not render in front.

    To show an example:


    When I adjust the 'y' value so the text is in front of the mesh:


    The shield icon appears then. So only the sprite is not rendering in front.

    Is this a bug or I am doing something wrong? Thanks