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

Question WebGL: UI Elements problem Artifacts

Discussion in 'WebGL' started by inakirayman, May 27, 2023.

  1. inakirayman

    inakirayman

    Joined:
    Feb 18, 2022
    Posts:
    4
    Unity version: 2021.3.10f1 URP


    I cant find a solution to my UI elements artifacts they only appear after I test in out in the browser in unity engine I don't have any issues with my UI elements.



    upload_2023-5-27_2-29-4.png upload_2023-5-27_2-29-29.png upload_2023-5-27_2-29-45.png
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    3,650
    Are they in a spritesheet? If so I would try with increased padding. And generally play around with texture settings. These images look like they would work well in 16-bit no-alpha mode so you might just save some memory too.

    Also give 2021.3.26f1 a shot because that version you're on is 16 bugifx/patch updates behind.
     
  3. inakirayman

    inakirayman

    Joined:
    Feb 18, 2022
    Posts:
    4
    Thx that fixed it.
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    3,650
    Padding or upgrading?
     
  5. inakirayman

    inakirayman

    Joined:
    Feb 18, 2022
    Posts:
    4
    The padding fixed it
     
    CodeSmile likes this.