- Home /
Light Cookie not in Inspector
I am working with Unity 2019.4.14f1 LTS and URP.
I was planning to use cookies for highlighting a tile, whenever the user selects it. Importing an image as cookie works - selecting texture type cookie and setting the alpha source works, etc.
However, I cannot find the option to apply it to either directional or spot lights. I have followed the documentation, but the "cookie" property in the inspector just isn't there. A few years back I have used cookies already in an older version of Unity, so I think I know what I should be looking for.
I already have tried switching from Realtime to baked (not that I'd want that), enabled shadows, culling mask.. but the property still does not appear.
Answer by IndieMarkus · Nov 19, 2020 at 03:58 PM
The problem was written in the first sentence of the question. Universal Render Pipeline does not support light cookies or decals whatsoever. This is neither stated in the official documentation to cookies or on the URP descriptions I could find.
The only workaround that worked for me was switching to HDRP (Which in itself is so problematic that the easiest solution for migrating URP to HDRP is creating a new project with HDRP and copying the project files from the other one).
So all in all, the problem and its solution describes the current state of Unity really well. No clean documentation and no single working rendering pipeline. A simple green outline really needs a render-pipeline change and half a day of migrating shaders.
What about unity 2020.3 URP of now? i have the same problem. and for now in the https://docs.unity3d.com/Manual/render-pipelines-feature-comparison.html light cookies is supported in URP.
found its after i clicked on 3 dots at the top right of the inspector and switched from normal to "debug". but now the inspector looks even more " not like it should as Unity documentation shows". It feels like it is def. not the intended way to see this field.
@IndieMarkus seems like i should'v done this. sry. new to this forum
FYI: No you don't need to @ the person you're responding to - I got an email for all 3 of your responses!
Your answer
Follow this Question
Related Questions
Mask field in the editor 8 Answers
Shader problem with 2D fake lighting 1 Answer
Can't add light to script 0 Answers
How to update Mecanim Transform Mask in inspector when model changes 0 Answers
Directional light not rotating more than 90 degrees. 0 Answers