Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Light cookie not working on a WebGL build with Android

Discussion in 'General Graphics' started by kuri_pl, Nov 21, 2022.

  1. kuri_pl

    kuri_pl

    Joined:
    Jun 21, 2016
    Posts:
    4
    We have detected that the cookies for the lights do not work on android in a webgl build.

    We see that it only happens in android (not in the PC browser),
    and we would like to know if there is a way to make it work.
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,974
    Which Unity version?
    If you tested on 2021.3.14, make a bug report
     
  3. kuri_pl

    kuri_pl

    Joined:
    Jun 21, 2016
    Posts:
    4
    Thanks for your answer.
    It is a problem that shouldn't happen then? I would like to confirm it.
    I'm using Unity 2022.1.14f1 but I would reconsidere adapt to another version if I can solve this problem with it.
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,974
    It does not state it should not work on the docs, so make a bug report so they can mention or fix this. Light cookies themselves do work in native builds on android.
    You can try 2022.2 as well
     
  5. shwhjw

    shwhjw

    Joined:
    Mar 15, 2016
    Posts:
    86
    Are you using URP by any chance? I've got the same issue with no light cookies at all in WebGL builds with URP (only tested on desktop browser). No mention of it not being supported in the docs.
     
  6. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,974
    Make a bug report so it might be fixed later
     
  7. shwhjw

    shwhjw

    Joined:
    Mar 15, 2016
    Posts:
    86
    I did make a bug report and it didn't qualify as a bug. Turns out if I run my WebGL build in Edge then my cookie does show up, it was Firefox that was the issue.

    I've just discovered though that my shader to create the cookies doesn't seem to work (or run at all) when using WebGL + URP together. I guess that could be a bug, but still investigating, could be my shader needs to be changed for that combination.
     
    DevDunk likes this.