- Home /
Set pixels on light cookie texture via script?
Is there any way to procedurally change specific pixels on a light cookie via script during runtime?
I can convert the cookie texture into a Texture2D and use SetPixel(), but can't find a way to change it back into a functional cookie texture for my directional light.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612191607im_/https://answers.unity.com/themes/thub/images/avi.jpg)