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

WebGL "White cutout"

Discussion in 'WebGL' started by thethickplottens, May 2, 2021.

  1. thethickplottens

    thethickplottens

    Joined:
    Apr 18, 2020
    Posts:
    2
    Hi,

    I just made my first build in WebGL and I have no idea why these "white cutout" happens, can someone explain? They don't happen in editor or play mode, but once I build and play.
    2021-05-02 19_35_30-Unity WebGL Player _ Skalds shadow — whitecutout.png
    Thanks in advance,
     
  2. thethickplottens

    thethickplottens

    Joined:
    Apr 18, 2020
    Posts:
    2
    Nevermind. One of the assets I was using had a webgl code, enabling a canvas.
    Code (CSharp):
    1. #if UNITY_WEBGL && !UNITY_EDITOR
    2.         WebGLCanvas.SetActive(true);
    3. #endif
    4.     }