Author Topic: NGUI Showing Twice  (Read 4746 times)

DevMan5000

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 22
    • View Profile
NGUI Showing Twice
« on: December 20, 2014, 03:05:38 PM »
Hi, I must have done something stupid and messed up some settings. My game now shows NGUI twice. I believe its showing once in the UI camera and once in the main camera. I messed around with the size of the main camera so now it is slightly offset from the UI cam. The result is that I am seeing all NGUI elements twice (slightly offset from one another).

Any idea what I need to do to fix this? Something to do with culling settings on main cam?

thanks.

optimisticmonkey

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 15
    • View Profile
Re: NGUI Showing Twice
« Reply #1 on: December 20, 2014, 06:25:18 PM »
Typically you set all ngui items to be on a seperate layer, e.g. ngui.

Then set the main camera culling mask to exclude ngui and the ngui camera to only render ngui layer....