Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question WebGL: UI Elements problem Artifacts

Discussion in 'Web' 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:
    6,422
    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:
    6,422
    Padding or upgrading?
     
  5. inakirayman

    inakirayman

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