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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Game objects are not visible when building on Ubuntu 20.04

Discussion in 'WebGL' started by saturnuns-ringar, Apr 30, 2022.

  1. saturnuns-ringar

    saturnuns-ringar

    Joined:
    Apr 26, 2022
    Posts:
    12
    I have no idea why but my game objects are not visible when I build a WebGL-version of my project. The text and background are both visible. The game objects are there, as far as I can tell, it seems to be playable, but they are not visible.

    I tried with just creating a 3D-project from the template and adding one single Sphere in the scene. The Sphere is visible in the Linux-build but not in the WebGL-build.

    Now what? :confused:
     
    Abdoam2013 likes this.
  2. CptStubbs

    CptStubbs

    Joined:
    May 24, 2020
    Posts:
    2
    Hej!

    I had the same issue on Ubuntu 22.04, using Unity 2021.3.1f1. However, I noticed an interesting quirk. If I was using 3rd party pre-fabs from the asset store, those loaded in fine in WebGL. But not any of the 3D objects I created myself in Unity... I tried figuring out if there are any obvious differences between the two types of 3D objects, but haven't found anything so far. I'm quite new to Unity myself, so a little unsure of what I'm doing.

    This post: https://issuetracker.unity3d.com/is...s-every-time-when-using-unity-editor-on-linux may be related. There is another post here: https://forum.unity.com/threads/how...s-win-cli-build-so-dark.1275140/#post-8091854

    I just tried installing the latest experimental build (2022.2.0a17), and now the objects are loading in, but everything is very dark. So progress?

    I hope it works out for you!
     
    saturnuns-ringar likes this.
  3. saturnuns-ringar

    saturnuns-ringar

    Joined:
    Apr 26, 2022
    Posts:
    12
    Hejhej! I missed this post since I put my project in hiatus for quite a while. I've started working on it again and I'll try your suggestions the next time I try to do a WebGL-version.