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

Resolved Can't use a RenderTexture on a Sprite renderer unity 2021.3.1f1

Discussion in 'General Graphics' started by RafaelGomes00, May 17, 2022.

  1. RafaelGomes00

    RafaelGomes00

    Joined:
    Aug 13, 2020
    Posts:
    73
    I have an scene in my game that uses a RenderTexture that is rendered on a Sprite renderer as the title says, but when i upgraded it to unity 2021.3.1f1(LTS), it stopped working, what is happening is that, when i try to assign the RenderTexture on the material of the Sprite renderer, the base map becomes the same as the SpriteRenderer sprite.

    Edit: It results in a almost full white screen.

    How it should be: (Unity version 2020.3.30f1 (LTS))
    Captura de Tela 2022-05-17 às 13.20.15.png

    How it is: (Unity version 2021.3.1f1 (LTS)) Captura de Tela 2022-05-17 às 13.20.29.png
     
    Last edited: May 17, 2022
  2. RafaelGomes00

    RafaelGomes00

    Joined:
    Aug 13, 2020
    Posts:
    73
    In case someone have this problem in the future, i solved it by basically using a quad game object instead a sprite renderer.