老版本向新版本u3d转换的几个问题

来源:互联网 发布:跨境网络诈骗的特点 编辑:程序博客网 时间:2024/05/01 19:33
 form: http://blog.csdn.net/yxriyin/article/details/26584505

首先是一个错误:

        ReadPixels was called to read pixels from system frame buffer, while not inside drawing frame.

        这个需要你在调用这个函数之前使用yield return new WaitForEndOfFrame();

         

        第二个错误:

        

Undefined Queue: 'Opaque' in EDITOR

这个是老版本shader引起的,详细查看http://forum.unity3d.com/threads/200853-Undefined-Queue-Opaque-in-EDITOR-since-installing-4-2-1f4


Charactor Controll只是单纯的增加物理特性,Charctor Montor增加了移动特性。 然后加上fps controll 才能动起来,不过这样就没有动作了。


UILabel label = gameObject.transform.FindChild ("Panel/Label").GetComponent<UILabel> ();
        Vector3 v = label.transform.position - Camera.main.transform.position;
        Quaternion rotation = Quaternion.LookRotation (v);
        label.transform.rotation = rotation;


一开始发现有缩放,原来是UILabel的z轴缩放没设置好。


0 0
原创粉丝点击