Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: aidesigner on December 03, 2012, 10:08:04 AM

Title: Viewing/Editing GUIs in the Scene View
Post by: aidesigner on December 03, 2012, 10:08:04 AM
When I first create a NGUI UI in my scene view it basically ends up very tiny,  half obstructed, and in the middle of my scene.  Given that you probably just want to see the GUI under construction while developing, I have the following questions.

1) If my GUI is on a dedicated layer/camera should I place the GUI menus (ie. UI Roots) at some random position outside my playing area?  I assume this is the normal strategy as I cannot seem to disable/invisible the main camera (ie. All non UI layers) while building my GUI.

2) If my GUI is on the Main Camera how might I make all the GameObjects invisible so I can work solely on the GUI?  Can you confirm I should make the GUI Z=100 (Bring to Front), and then turn off the GUI Panel when editing my scene?

3) Please confirm I can also put a menu on a GameObject (ie. Side of Building) that is not attached to a camera?

Thanks,
aidesigner
Title: Re: Viewing/Editing GUIs in the Scene View
Post by: ArenMook on December 03, 2012, 11:23:33 AM
In Windward I moved the UIRoot up 1000 units on the Y, but I suggest you create a new scene where you will be creating your UI. This scene should only have the UI in it. Save the UI as a prefab, then use this prefab everywhere else.

For a game world UI, just create a UIPanel somewhere in your world and add children widgets to it. You don't need the whole UIRoot - UIAnchor - UICamera hierarchy. Just make sure that the layer of this panel UI you're creating is visible by your game camera.