Search Unity

Question Sprite background remains black in Render Texture

Discussion in 'Universal Render Pipeline' started by marcosdmoran, Apr 18, 2023.

  1. marcosdmoran

    marcosdmoran

    Joined:
    Apr 15, 2021
    Posts:
    1
    I have a Sprite used in a VFX that I render with a camera onto the UI with a render texture, On the scene the sprite can be seen as it is intended, but in the render texture it takes the background color of the camera (Set to black with 0 alpha). I have tried using different shaders as stated here, but no luck. Is there any way around this? Thanks :)

    Scene View:
    upload_2023-4-18_17-1-2.png

    Render Texture:
    upload_2023-4-18_17-3-54.png

    Material
    upload_2023-4-18_17-1-51.png
    Camera
    upload_2023-4-18_17-0-7.png
    Texture import settings:
    upload_2023-4-18_17-6-10.png