Author Topic: Multiple Cameras and UICamera events.  (Read 2569 times)

Arsenik

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Multiple Cameras and UICamera events.
« on: November 01, 2012, 05:32:58 AM »
Hello, i have 2 cameras, 1 for the gui and 1 for the game scene... if i want to use the handy event system of NGUI should and can i use 2 GUICamera script on 2 different camera at the same time? This will send two different raycasts? Or the first collider to get hit (for example the button) will hide the gameobject collider behind it? For example if i click a button in the gui and behing it there is a lever... i don't want to hit the leverl, i'm clicking the button.

Thanks.
« Last Edit: November 01, 2012, 05:35:55 AM by Arsenik »

dlewis

  • Guest
Re: Multiple Cameras and UICamera events.
« Reply #1 on: November 01, 2012, 06:19:10 AM »
Put the UI on it's own layer, make sure the UICamera only renders the UI layer and only does raycasts/message for the UI layer.