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. Dismiss Notice

Resolved ScrollView on Render Texture

Discussion in 'UI Toolkit' started by Raistlin2015, Feb 5, 2022.

  1. Raistlin2015

    Raistlin2015

    Joined:
    Apr 4, 2015
    Posts:
    27
    I have a ScrollView on a render texture. When I scroll the items in the scroll view are blurred. Is there any way to fix this?

    Before Scrolling
    upload_2022-2-5_16-38-45.png

    After Scrolling

    upload_2022-2-5_16-39-43.png

    #UI #UIBuilder
     
  2. billykater

    billykater

    Joined:
    Mar 12, 2011
    Posts:
    327
    This looks like your rendertexture is also rendering the UI but isn't cleared every frame creating these smears. I would try either clearing the rendertexture color each frame or exclude the UI from being rendered onto the rendertexture whatever fits better in your case.
     
  3. SimonDufour

    SimonDufour

    Unity Technologies

    Joined:
    Jun 30, 2020
    Posts:
    515
    This seems like a runtime UI. Assuming this, there are some clear options in the PanelSettings that would clear the render target
     
    Raistlin2015 likes this.
  4. Raistlin2015

    Raistlin2015

    Joined:
    Apr 4, 2015
    Posts:
    27
    Thank You. I stumbled upon that after posting the question. It's working now.

    upload_2022-2-7_19-13-34.png
     
    kayy likes this.