Hey there,
I’m working on a mobile game using experimental Light2D features. I have a global light that works no problem but I have two point lights that I can’t seem to get to work.
In the editor they show up just fine but when I build to IOS the the Light2D point lights don’t show up. The global light does but neither of the point lights do.
I’m using the default URP settings that are imported when you add the package to Unity. I’m using the mostly default “Beautiful” quality settings.
I’ve tried both Gamma and Linear color space based on some other posts I found here. I also saw this post about making sure to use the highest quality setting for the build but since I’m using URP I think it overwrites that and I’m not sure how to modify the URP build quality settings. I’ve tried turning my post processing on and off for builds. I’ve tried messing with z-index, target layers that the lights effect, etc. None of these things have made a difference.
Using:
Unity 2019.4.12f1
URP 7.3.1
Default URP 2D Renderer profile data
I saw lots of info about increasing your pixel light count in settings so I tried opening the pipeline config file and jacking m_MaxPixelLights from 0 to 6. Still no luck. Attached are my full pipeline configs.
[170211-ruby-2d-renderer-data.txt|170211]
[170212-ruby-universalrenderpipelineasset.txt|170212]
Edit: For anyone having this issue and finds this in the future, what ultimately fixed it for me was setting the initial intensity of the 2d light to 0.00001 instead of 0. It seems like if the point light wasn’t set to an intensity other than 0 on startup I couldn’t later interact with the intensity after scene load.
Not sure if this adds anything to the mix but I’m starting the scene with an intensity of 0 on the lights and turning up the intensity based on a conditional during gameplay. Again, this is working correctly in the editor just not once built to mobile.
I saw lots of info about increasing your pixel light count in settings so I tried opening the pipeline config file and jacking m_MaxPixelLights from 0 to 6. Still no luck. Attached are my full pipeline configs.
2d renderer data
URPpipeline asset