Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: KeithT 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 ?
-
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.
-
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).