Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: kamil.slawicki on December 13, 2012, 01:18:53 PM
-
Hi there,
I would like to know if it is possible to have a piece of UI created with NGUI that is floating somewhere in the world but can be interacted with by using the mouse. The case scenario here is having those door terminals that would show a numeric key pad floating above them and the user is able to use the mouse in order to press some buttons and unlock the door.
Cheers.
-
Yup. I suggest creating your UI window in 2D, then moving the panel out into your world. You don't need UIRoot, UIAnchor, or UICamera that's on the 2D UI. Switch the panel's game object later to be on one of the layers visible by your game camera, and make sure that the game camera has a UICamera script on it as well (so you can interact with the world UI panel).