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

Unable to use UI Text (TMPro) when using Upscale Render Texture on the Pixel Perfect Camera

Discussion in 'UGUI & TextMesh Pro' started by Teedo145, Oct 29, 2020.

  1. Teedo145

    Teedo145

    Joined:
    Apr 14, 2014
    Posts:
    23
    I've achieved pixel perfectness by setting a low reference resolution (256 x 112) and using Upscale Render Texture, but this makes any text completely unusable as you can see in this screenshot of a dialog box.
    upload_2020-10-29_18-33-11.png

    I have tried having a second camera just for the GUI and stack it on top of the main camera, this would mean the speech bubble would be pixel perfect but the text wouldn't....but the pixel perfect camera doesn't work with stacking.
    upload_2020-10-29_18-35-7.png

    I have run out of ideas and am now stuck with a GUI that isn't pixel perfect. Has anyone gotten pixel perfectness text to work with their pixel perfect game?

    upload_2020-10-29_18-32-15.png
     
  2. DuelystRes

    DuelystRes

    Joined:
    Oct 6, 2020
    Posts:
    12
    My problem is the same as yours, do you have a solution later
     
  3. fsoufi

    fsoufi

    Joined:
    Apr 5, 2012
    Posts:
    37
    Same issue here.
     
  4. marrobin

    marrobin

    Joined:
    Oct 1, 2020
    Posts:
    7
    Enable "Orthographic Mode" in the "Extra Settings" section of your TextMesh Pro Component and that should fix this issue.
     
  5. nicholas_unity448

    nicholas_unity448

    Joined:
    Jan 26, 2022
    Posts:
    3
    I have a workaround for this issue, although it's not great. I've created two extra Cameras, one with a PixelPerfectCamera for the gameplay and one for rendering canvases, and pipe both of them to RenderTextures that I then have my MainCamera render.
     
  6. blizzy384

    blizzy384

    Joined:
    Dec 22, 2021
    Posts:
    8
    Could you please eleborate how exactly to do this using URP? I can get the camera rendered to the texture but cant make it work to display on the output camera.
     
  7. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,314
    I'll move this post to the TMP forum where it belongs. It's not related to any 2D feature.