Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: bmannion4 on June 11, 2012, 07:13:37 PM

Title: *Solved* Clicking buttons in 3D scene
Post by: bmannion4 on June 11, 2012, 07:13:37 PM
I searched around for a tutorial on this, but have had no luck so far. I know my way around NGUI pretty well now, but have no been able to figure out how to make my HUD overlay(2D gui on a different layer than my 3D camera for the actual scene) have buttons the player can still interact with. Any advice or a point towards a tutorial that shows this would be great.
Title: Re: Clicking buttons in 3D scene
Post by: joreldraw on June 12, 2012, 05:17:14 AM
You can work with your 3d cam using NGUI event system same that in the 2d Ngui cam.
What is your dude?
Title: Re: Clicking buttons in 3D scene
Post by: PhilipC on June 12, 2012, 09:11:43 AM
As long as your 3D camera has a UICamera script attached to it you will get the event for the 3D world as well. You can the just build you "UI" scene in you 3D world or better yet have 3D object that have the UIButton script attached.
Title: Re: Clicking buttons in 3D scene
Post by: bmannion4 on June 13, 2012, 03:23:11 PM
Awesome, thanks!