Hi According to the scripting reference, using the spotAngle parameter should set the cookie size on directional lights, but it doesn't seem to work. Setting the spotAngle within a script has no effect on the light and in fact
always shows 1, even if the cookie size is set differently in the inspector.
Is there a workaround to set the cookie size programmatically?
Directional lights don't use the spot angle parameter, that's only for spotlights. Use cookie size!
answered Jan 15 '11 at 11:49 AM