Author Topic: Unity 4.5's UI layer  (Read 7265 times)

renanse

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 1
  • Posts: 14
    • View Profile
Unity 4.5's UI layer
« on: June 04, 2014, 07:08:00 PM »
I recently upgraded to Unity 4.5 from 4.3.  Prior to the upgrade, I had a user defined layer called UI, which NGUI expects to find.  Unity 4.5 adds a default layer called "UI" which then conflicts with my user defined one.  This causes some issues, particularly when looking up the "UI" layer since there are two layers with the same name.

Anyone else seeing this issue?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity 4.5's UI layer
« Reply #1 on: June 05, 2014, 01:39:18 AM »
In Windward I deleted the custom UI layer, and simply changed my UI to use the newly added built-in layer. However if you don't want to do this, simply rename your old "UI" layer to something else, such as "2D UI".

renanse

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 1
  • Posts: 14
    • View Profile
Re: Unity 4.5's UI layer
« Reply #2 on: June 05, 2014, 08:54:26 AM »
Fair enough, and good to know there's not some magic switch I'm forgetting.  :)  Switching to the new layer would be a somewhat painful refactor due to the many UI prefabs we have so I'll go with renaming for now.  Thanks for the help!