Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Arsenik on November 01, 2012, 05:32:58 AM

Title: Multiple Cameras and UICamera events.
Post by: Arsenik 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.
Title: Re: Multiple Cameras and UICamera events.
Post by: dlewis 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.