- Home /
Light Cookies on Android ?
Hello, I have a Spotlight with a cookie attached to it and it works perfectly on my computer. But when I port my game to my Android device, it's a normal Spotlight, and the cookie doesn't work. Is there any way I can get Light-Cookies work on Android? :-)
Thanks, Andreas.
I'm having a similar problem, however, I am using a directional light. It looks great on my computer, but when I run it on my Android device, the light cookie simply doesn't work and allows the light to illu$$anonymous$$ate the whole scene. I hope this gets some attention!
Just ran into the same problem! Did you ever find an answer?
Answer by Matt-Murch · Jun 27, 2017 at 02:25 PM
@AndreasX12 I found an answer! I turns out unity does all sorts of helpful stuff when building for mobile, including limiting our lighting.
You'll want to go into quality settings and check how many pixel lights are allowed for the quality setting you are sending to mobile. Each light with a cookie will need to take up one pixel light , but more than one will probably cause lag on an android tablet.
With a number set you need to go to your lights, and make the Mode on each un-important, then go though you lights with cookies and mark them as important. Unity will keep these as pixel lights when it builds!
(Small promotional note: I discovered this while building the Alpha for Transformers, check it out on Facebook! https://www.facebook.com/TerraformersSpaceCommand/)