there seems to be no “CookieSize” property on directional lights to get or set the cookie size from script.
In the official documentation found here, it’s said that the “spotAngle” property controls the light cookie size but it doesn’t : it simply is the spot angle value…
Any help on that ? A hack I could use to access that property nonetheless ? I mean, the directional lights inspector is able to change it so…
Yes, I’m using a directional light but the spotAngle property doesn’t change anything for my cookie. It’s not the cookie size at all but merely the spot angle for spotlights, the documentation seems wrong.
The only way to change the cookie size for directionals is via the inspector, I didn’t find any property to change it via script…