Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Sprite Unlit graph materials disappear when I go into fullscreen on WebGL

Discussion in 'Shader Graph' started by bobbaluba, Aug 31, 2020.

  1. bobbaluba

    bobbaluba

    Joined:
    Feb 27, 2013
    Posts:
    81
    Like the title says, sprite unlit shader graph materials disappear when I go into fullscreen in WebGL builds. Then they stay hidden even if I leave fullscreen.

    I made a "sprite unlit (experimental)" graph, created a material from it and assigned it to a canvas image.

    - It works fine on windows builds, it only bugs out on WebGL builds.
    - It does not happen for the built-in default UI materials.
    - It happens on Edge and Chrome, but not on Firefox
    - I'm using shader graph version 7.3.1 and Unity 2019.4.6, project based on the urp example.
     
  2. bobbaluba

    bobbaluba

    Joined:
    Feb 27, 2013
    Posts:
    81
    So I tried upgrading to 2020.1.3 and URP/Shader graph 8.2.0... But then the buttons are gone all the time, even in the editor. I guess maybe sprite unlit is only for use with the 2d renderer?

    ...a bit strange that it still worked most of the time for 7.3.0...
     
    hodgepodge2022 likes this.
  3. hodgepodge2022

    hodgepodge2022

    Joined:
    Mar 8, 2015
    Posts:
    19
    I am also experiencing this issue. Please address.
     
  4. bobbaluba

    bobbaluba

    Joined:
    Feb 27, 2013
    Posts:
    81
  5. Shaunyowns

    Shaunyowns

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    328
    I'll send this post over for you @bobbaluba to see if the team can have a look!
     
  6. Lucarma79

    Lucarma79

    Joined:
    Feb 14, 2015
    Posts:
    5
    I have the same problem, with URP 10.5.1 and shader graph 10.5.1. On Chrome, when I start the WebGL build it has the URP Image UI with overlay. If I press on fullscreen the image disappear.
    I'm forced to use the built-in default UI material, to solve the problem.. any suggestions?

     
  7. marcuslelus

    marcuslelus

    Joined:
    Jun 18, 2018
    Posts:
    66
    This still happens in 2022. Still works on Firefox, but not Chrome (don't know about Edge, Safari...)
    • Unity 2021.2.17
    • URP 12.1.6
    • WebGL
     
    Pawellos likes this.