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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved URP: Drag and drop render texture to light cookie does not work

Discussion in '2021.2 Beta' started by Jar_Coding, Jul 31, 2021.

  1. Jar_Coding

    Jar_Coding

    Joined:
    Oct 5, 2017
    Posts:
    16
    In the build in render pipeline you can drag and drop a RenderTexture into the Cookie slot of the Light component.

    In URP you can set the cookie to a RenderTexture only with a script. Would be cool if the drag and drop feature would be ready in the final 2021.2 release.

    Greetings
     
    hippocoder likes this.
  2. martint_unity

    martint_unity

    Unity Technologies

    Joined:
    Jan 11, 2018
    Posts:
    15
    Hi,
    Please report this and we will get to it. Since that seems to be a bug / feature request. Thanks.
     
    Last edited: Aug 3, 2021
  3. Jar_Coding

    Jar_Coding

    Joined:
    Oct 5, 2017
    Posts:
    16
    Reported with case number 1355504
     
    LeonhardP likes this.
  4. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,111
  5. TieSKey

    TieSKey

    Joined:
    Apr 14, 2011
    Posts:
    219
    This happens with HDRP too.
     
  6. LorisToia

    LorisToia

    Joined:
    Jan 21, 2021
    Posts:
    14
    How to correctly setup light cookie with Unity 2021.2+, it's supposed to work with URP.
     
    polyphonic13 likes this.
  7. polyphonic13

    polyphonic13

    Joined:
    Apr 2, 2013
    Posts:
    17
    Did anyone figure out how to correctly add a light cookie in 2021.2+? I have just upgraded a project to use URP 12.1.4 and see the LightCookie field for lights in the editor, with a previously valid cookie, but no cookie is being applied. Note: the texture being used is of type Cookie.

    UPDATE: it appears that switching to Progressive GPU (preview) in settings resolves this issue for me. I now have light cookies being applied.
    1) Window > Rendering > Lighting
    2) Lightmapping Settings
    3) Lightmapper
     
    Last edited: Feb 21, 2022
  8. Dawdlebird

    Dawdlebird

    Joined:
    Apr 22, 2013
    Posts:
    85
    This is not at all resolved. Trying to drag a rendertexture in there, blanks out right away. Unity 2021.3.13f1.
    correction: it works for directional light, but point lights outright refuse :|

    [edit] seems for point-light you need to use a cubemap. Haven't been able to use a rendertexture as cubemap (throws errors), but if that's the required step if you'd like to use rendertextures with point lights.
     
    Last edited: Jan 4, 2023
    KarlKarl2000 likes this.