Author Topic: *Solved* Clicking buttons in 3D scene  (Read 3102 times)

bmannion4

  • Guest
*Solved* Clicking buttons in 3D scene
« 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.
« Last Edit: June 13, 2012, 03:23:39 PM by bmannion4 »

joreldraw

  • Guest
Re: Clicking buttons in 3D scene
« Reply #1 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?

PhilipC

  • Guest
Re: Clicking buttons in 3D scene
« Reply #2 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.

bmannion4

  • Guest
Re: Clicking buttons in 3D scene
« Reply #3 on: June 13, 2012, 03:23:11 PM »
Awesome, thanks!