Unity3d_iGUI_多个Root的使用
来源:互联网 发布:歌曲网络一线牵 编辑:程序博客网 时间:2024/05/20 00:48
在unity3d中,如果你是使用的IGUI的话,那么当我们做一个GUI系统的时候,我们就会在iGUICode_xx.cs文件中进行有关的代码编写。但是一旦我的GUI系统十分复杂的时候就会出现让我们“疯狂”事情了,代码好庞大。
所以我们就需要对代码进行分离,把GUI系统划分一下。这个时候我们就希望在不同脚本中编辑相应的代码,这样下来我们的代码就没有那么复杂了。
在iGUI插件的之前版本是没有这样的功能的,那样我们就需要很特殊的处理了。现在都不想回忆那种繁琐的快感了!
在IGUI的最新版中就给我们提供这样的功能,现在介绍如下:
Multiple Roots
Attention : Multiple roots are in beta stage and only available after iGUI 1.2.4 and iGUIBasic 1.0.1
To create multiple roots follow these steps :
1) Create a scene.
2) Add a root.
3) Duplicate the root from hierarchy tab
4) Duplicate iGUICode_sceneName file
5) Change the file name to iGUICode_sceneName2 for example. Also change the class declaration, instance type and getInstance() return type to iGUICode_sceneName2.
6) Now drop the edited script file (iGUICode_sceneName2) to the “Manual code file” property of new root.
Now you’re ready to go. To edit gui elements, you have to enable only one root at a time and disable the ones which won’t be edited. You can enable/disable roots using the component checkbox (Please take a look at the figure right).
- Unity3d_iGUI_多个Root的使用
- unity3d_iGUI_图片拖动效果的实现
- Ubuntu root账号的使用
- MySql存在多个root用户.
- root用户和sudo使用root权限的区别
- root用户和sudo使用root权限的区别
- root用户和sudo使用root权限的区别
- 《转载》利用Linux内核的多个安全漏洞获得root权限
- 多个定时器的使用
- 多个定时器的使用
- 多个定时器的使用
- 多个UIAlertView的使用
- 多个UIAlertView的使用
- 多个ServletContextListener的使用
- 多个Fragment的使用
- 多个select的使用
- Unity3d_iGUI_对iGUICode_xx.cs文件重新命名
- Mysql的用户问题 里面有3个root账户
- ADB server didn't ACK * failed to start daemon * 解决方案
- UVa 10274 - Fans and Gems, 神牛Rujia Liu的神题(三)
- gdb调试程序简单入门
- vs2012通过ADO连接Access2013(x64)
- 读书笔记---C Traps and Pitfalls
- Unity3d_iGUI_多个Root的使用
- Android Activity加入半透明蒙板,实现夜间模式
- hdu 2466 Cryptography Reloaded
- 指针作为函数参数
- struts2服务器端的表单验证
- 非常实用的15款开源PHP类库
- FastDFS_v4.06+nginx-1.4.2配置详解
- C/C++数据对齐
- 判断两个链表是否相交