URP Point Light

I am having a problem with URP on Android, 2D point light doesn’t show up, only global light works as expected. I saw someone running into this problem before so I tried the suggested solution ( change the default settings in Edit > Project Settings > Quality ) but it did not work either. Anybody has an idea? BTW I’m using unity 2019.4.23

The problem still persists, I found your topic after I created my bug report here. It seems no one of Unity gives a **** about that and the problem is easily reproducible. It is terrible, it keeps me for 3 days now from publishing a game and 2d lights just don’t work out of the box for 4 releases now when building and running for Android!

i tried a point light and it worked for me on unity 2021

2d light and build and tested on Android phone? Which android version did you have?

il2cpp on redmi api31

I had that problem and I think I was using 2019 something too.
I solved changing some settings and someone at Reddit asked about the same thing and this helped him/her too:

"
Try the classic:

Go to Edit → Project Settings…-> Quality

You will see a lot of checkboxes there, you can read Default and see some triangles next to it. Click the Android corresponding triangle and select highest posible quality settings. Sometimes that helps with android(and Webgl) effects not showing like in editor or stand alone buld.

Rebuild to see if that worked.

If it didnt go to Edit → Project Settings…-> Player

Look for the android tab and try set Lightning Encoding to High Quality. Rebuild to check , if that didnt make it , again on Edit → Project Settings…-> Player set Shader precision model to Use full sampler precision by default , lower precision explicity declared

I had problems with point light not showing on webgl and android builds and the the first step solved the problem for webgl but not for android. Finally at the third step android build get the lights! Good luck.

"

3 Likes

Thank you very much for the thorough answer and YES it helped me solve the problem!!!

Hi nikulude, good to here that kikeUY solution.

Since 2019.4 & 2020.3 is already end of life.
If possible, please upgrade to the latest LTS version, if issue still persist you may raise bug report via
“Help → Report a bug”

@MaxwellTan I wrote it wrong - I am on 2022.3 LTS. The solution was:
Edit → Project Settings…-> Player set Shader precision model to Use full sampler precision by default , lower precision explicity declared

Now I will try to set back the other settings. It is important that with the next minor release this should become the standard setting for all Android URP 2D builds!

1 Like

Hi nikulude, thanks for the info.

I afraid that in the 2D team we don’t handle Project Settings => Player

Please try to report on the platform Android specific channel

Weird. I’m on v2019.4.23f1 but cannot find Edit → Project Settings…-> Player set-> Shader precision model.
Could it be done programmatically? I find PlayerSettings.GetShaderPrecisionModel() but I’m not sure there is a setter method.