Author Topic: Unity 5.2 WebPlayer Issues on OSX  (Read 3390 times)

Aurigan

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 21
    • View Profile
Unity 5.2 WebPlayer Issues on OSX
« on: September 22, 2015, 08:56:18 PM »
Hi, building one of the example scenes for web player in Unity 5.2 (or 5.2.1), using NGUI 3.9.2 will cause a couple of issues:

  • There's a bright pink triangle showing up bottom left. I eventually tracked this down to having the UIRoot's Camera component clear flags set to 'Depth only'. If this is set to 'don't clear' the pink triangle goes away.
  • If any controls are added using an atlas with an Unlit/Transparent Colored shader warning messages show up in the log: WARNING: Shader Unsupported: 'Hidden/UpdateDepthBuffer' - Pass '' has no vertex shader
    WARNING: Shader Unsupported: 'Hidden/UpdateDepthBuffer' - Setting to default shader.

I think these are both Unity issues and have reported the first as a bug, only happens on the OSX webplayer. Figured I'd also post it here as it looks at first glance like an NGUI issue as the default NGUI setup uses a Camera configured this way.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity 5.2 WebPlayer Issues on OSX
« Reply #1 on: September 26, 2015, 03:48:47 PM »
UI camera is supposed to clear depth, otherwise you will get your 3D scene's depth info interacting with your UI, which is not what you want.

You are supposed to have another camera in your scene that will draw before the UI that will clear the screen. If you only have the one camera (the UI camera) then its clear flags should be Color or Skybox.