您的位置:首页 > 移动开发 > Unity3D

unity NUGUI tutorial the basics

2015-12-04 11:19 423 查看
To start working with NGUI, simply drag one of the "Control" prefabs from the Project View into the Scene View.

Alternatively you can create a new sprite or label from the NGUI menu or by using shortcut keys:

* ALT+SHIFT+S adds a new sprite.

* ALT+SHIFT+L adds a new label.

* ALT+SHIFT+T adds a simple texture.

*ALT+SHIFT+W adds an invisible widget.

Each of the shortcuts adds achild object to whatever you have selected.

When any NGUI widget first appears in the scene, a UI hierarchy will be created that looks like the following:

UI Root

- Camera

- Widget

...where "Widget" is what you added. And remember: Copy/Paste works great!

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

要开始使用同时,只需拖着的“控制”预制项目视图到场景视图中。

或者你可以从同时菜单中创建一个新的精灵或标签或使用快捷键:

* ALT + SHIFT + S添加一个新的精灵。

* ALT + SHIFT + L添加一个新的标签。

* ALT + SHIFT + T添加一个简单的纹理。

* ALT + SHIFT + W添加了一个看不见的小部件。

每一个快捷方式添加为子对象不管你选择对象。

当任何同时部件第一时间出现在现场,将会创建一个UI层次结构看起来像下面的:

UI根

-相机

——小部件

…“部件”是你说。记住:复制/粘贴工作好了!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: