Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Is there a way to use Render Texture within a TMP text?

Discussion in 'UGUI & TextMesh Pro' started by XSiL1337, Dec 8, 2023.

  1. XSiL1337


    Oct 19, 2018
    I want to use an animated 3d object in several parts of my UI (simple rotation), so i decided to use Render Texture, but i faced the problem that TMP works only with sprites, although it's possible to drag and drop Render Texture into the Sprite Atlas field in TMP Sprite Asset file, but it renders as a blank space. I see two possible solutions:
    1) TMP seems to be open source, so i can try to make it compatible with Render Texture (i'm afraid there may be a reason why this hasn't been implemented yet)
    2) Create a regular 2d animation outside Unity and use <sprite anim="...">
    Both solutions seem not very practical to me, so i would like to hear any advice.