首页 > 其他 > 详细

U3d 注意

时间:2015-06-05 15:35:44      阅读:150      评论:0      收藏:0      [点我收藏+]

设置layer :不要使用go.layer= intMM;
要使用Nguitool.Setlayer(go,intLayer);

static public void SetLayer (GameObject go, int layer)
{
    go.layer = layer;

    Transform t = go.transform;

    for (int i = 0, imax = t.childCount; i < imax; ++i)
    {
        Transform child = t.GetChild(i);
        SetLayer(child.gameObject, layer);
    }
}

 

U3d 注意

原文:http://www.cnblogs.com/naiking/p/4554646.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!