Author Topic: [SOLVED] UICamera & Main Camera's culling default / GUI Layers problem  (Read 5494 times)

TomA6

  • Guest
Hi

I have a Main Camera in my game set to the default layer and the culling layers are all selected with the exception of the GUI Layer.

All my NGUI Panels (and children) are set to the GUI layer. I need this because my main camera sometimes shows the NGUI objects in the background. Obviously I could probably move the whole UICamara tree elsewhere but I like working with default positions of 0, 0, 0 etc...

The UICamera Culling only has the GUI layer selected.

Now for the issue. None of the NGUI buttons or UI Objects respond to user input...

Have any suggestions? Thanks.
« Last Edit: September 12, 2012, 09:24:44 PM by TomA6 »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UICamera & Main Camera's culling default / GUI Layers problem
« Reply #1 on: September 08, 2012, 03:07:27 PM »
Assuming you already have a UICamera attached to the GUI camera, Physics properties -> Raycast Hit Triggers must be on.

TomA6

  • Guest
Re: UICamera & Main Camera's culling default / GUI Layers problem
« Reply #2 on: September 09, 2012, 03:43:17 PM »
Yes everything was already checked boxed during my initial problem including the Layer Collision Matrix layers...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UICamera & Main Camera's culling default / GUI Layers problem
« Reply #3 on: September 09, 2012, 05:25:08 PM »
Did you check the event receiver mask on the UICamera? Make sure it's the same as the camera's culling mask.

TomA6

  • Guest
Re: UICamera & Main Camera's culling default / GUI Layers problem
« Reply #4 on: September 12, 2012, 09:20:36 PM »
Changing the Event Receiver Mask did the trick !!! Thank you I thought I was going mad for a sec.  :D