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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

some ui is not rendered by web player

Discussion in 'UGUI & TextMesh Pro' started by Deleted User, Jun 16, 2015.

  1. Deleted User

    Deleted User

    Guest

    Hello,

    some of the UI is not displayed in the web player build. More specifically, the following is the application running inside the editor:

    Screen Shot 2015-06-16 at 15.58.10.png


    and the following is the web player version:

    Screen Shot 2015-06-16 at 15.59.45.png

    Note that the UI elements that are not drawn are there, I can click on them, so they exist. The other strange thing is that the not-drawn part changes each time I open the page in a new browser window.

    I am Using Unity 5.1.0f3 on Mac os X Yosemite, latest version, with Safari. Same problem happens with Firefox.
     
  2. LyveIG

    LyveIG

    Joined:
    Jan 8, 2015
    Posts:
    15
    I assume that the vertex count limit of 65535 has been exceeded. Not sure why this only happens in the web player though.
     
  3. Deleted User

    Deleted User

    Guest

    The part that is not drawn correctly is just a scroll view, with a chid panel containing labels (around 60 labels). The scene is quite simple, very low-poly. I don't see where I could have exceeded the vertex count limit ... but thanks for the hint.
     
  4. Deleted User

    Deleted User

    Guest

    update: it works correctly under windows (IE Explorer + Windows 8.1 + latest Unity Web plugin). So it is a mac web player issue. Should I file a bug?
     
  5. Deleted User

    Deleted User

    Guest

    For those interested, I was able to identify what is causing the issue and how to overcome it. I noticed that, when the camera viewport extends behind the UI (the list on the left), then rendering is correct. If the camera viewport is instead restricted to the remaining part of the window, then the rendering issue arises. So, I created a second camera, with a viewport exactly covering the list, and pointing to nowhere (so it basically renders a white box behind the UI).