unity3d
文章平均质量分 62
ronaldo_unity3d
这个作者很懒,什么都没留下…
展开
-
unity3d遍历子对象的几种方法
问题:如何遍历一个游戏物体的子对象 方法一: void FindObjects(GameObject obj){ print (obj.transform.childCount);int i=0;while(i0)FindObjects(parent.gameObject);i++;}}方法二: foreach(Transform t in transform){ // }原创 2014-03-17 22:38:57 · 8291 阅读 · 0 评论 -
Unity3D优化总结
http://blog.csdn.net/yesy10/article/details/7847926 1、在使用数组或ArrayList对象时应当注意 [csharp] view plaincopyprint? length=myArray.Length; for(int i=0;i { } length=myArray.Length;转载 2014-03-18 23:43:01 · 775 阅读 · 0 评论