Search Unity

Problem with glitchy model with WebGL build.

Discussion in 'Web' started by petercuret, Jun 23, 2021.

  1. petercuret

    petercuret

    Joined:
    May 21, 2014
    Posts:
    1
    Whenever I build my game as a WebGL page, I encounter a strange issue in my character model. The texture at the end of the hands seem to stretch, and it looks very glitchy (see the attached screenshot).

    This doesn't happen within the Unity editor, or when I build for another platform such as MacOS.
    Any Idea on what the problem could be?

    Screenshot 2021-06-23 at 21.42.14.png
     
  2. brendanduncan_u3d

    brendanduncan_u3d

    Unity Technologies

    Joined:
    Jul 30, 2019
    Posts:
    437
    That is a strange issue. It would be good to see if it's an OpenGL issue, or specifically WebGL, since the Editor and Standalone Player default to Metal for their graphics. In the Project Settings, Player Settings, Standalone Player, Other Settings, turn off Auto Graphics APIs, add OpenGLCore and move it to the top of the list. The editor should restart using the OpenGL.