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根
-相机
——小部件
…“部件”是你说。记住:复制/粘贴工作好了!