Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Tripwire on December 12, 2012, 12:21:17 PM
-
Hi,
I'm using FastGUI (plugin for nGUI) to make menu's from PSD files. Link: http://forum.unity3d.com/threads/115151-GUI-FastGUI-C-Easy-and-Fast (http://forum.unity3d.com/threads/115151-GUI-FastGUI-C-Easy-and-Fast). So when i use FastGUI i create a 2D UI.
So i have a 2D UI with a background and some buttons, and i want some 3D objects let's say a cube rotating in front on the UI background but behind the UI buttons. Is this possible with NGUI? And if so are there examples i can look at?
-
You will need to render that cube to texture using a secondary camera, then draw the texture using UITexture.
-
Or you set up 3 cameras in total with 3 unity layers - 2d background, 3d, 2d foreground.
-
Nice :D What i did:
2D UI with only the radial buttons in front of the 3d Object
3D Panel with a Camera and a cube and a directional light
So now i have 3 camera's and 2 2D UI's in my scene and it works very good!
Only question, is this performance heavy on IOS devices?
-
It depends on how much you have in it. We use it in the Character and Board screen in Subway Surfers and that works pretty well. :)