Author Topic: 3D menus and the FPS controller camera  (Read 3812 times)

KeithT

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 55
    • View Profile
3D menus and the FPS controller camera
« on: April 20, 2012, 11:54:57 AM »
We are using an FPS controller and would like to have 3D NGUI menus on GameObjects the user can interact with when they approach it.

If the UICamera script has to be on the camera for anything under it to get NGUI events, how do you do this, because if you put the GameObjects with the 3D NGUI menus on them under the camera hierarchy they will move about with the FPS controller ?

Proton

  • Guest
Re: 3D menus and the FPS controller camera
« Reply #1 on: April 20, 2012, 01:09:58 PM »
If you have a 3D UI camera as a child of your FPS camera, just make sure that it targets a layer like 'UI3D'.

The 3D UI elements do not need to be children of the camera, just make sure they are in the right layer.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 3D menus and the FPS controller camera
« Reply #2 on: April 20, 2012, 01:46:42 PM »
I'm a little confused by what you're trying to achieve. if you want 3D HUD, parent it to your 3D UI camera. If you want in-game UI objects such as signposts that you can walk up to and click on, just create your widgets as a part of your world. Make sure each object has its own panel (ie: if you have a signpost with some text on it, make sure that the signpost has a UIPanel on it).