2014/4/8
哈哈,今天开始以后有时间就玩u3d了。
1、unity3d安装一系列不成功: 未断网
2、Error while importing package:coudn‘t decompess package.
解决:NGUI-package路径包含中文
3、You can‘t rtace widgets on a layer different than the uipanel that manages then. If you want to move widgets to adifferents layer.parent then to a new panel instead.
4、unassigneReferenceException:The wariable newobject of"create" has not been assigned.You probably need to assign the newobject variable of the create script in the inspector.
create 是我创建的挂在相机下的C#脚本,newobject 为Transform对象--public Transform newobject ; (暴露变量,加上public,在试图中可见这个变量且易修改);
解决:为newobject 赋值,可直接拖曳一个Transfrom对象(如:Cube)挂在这个暴露变量身上
5、NullReferenceExeption:UnityEngine Object,Internal-InstantiateSingle(unityEngine.object...) 解决:将参数unityEngine.obje改为public
6、ArgumentException:The prefab you want to instantiate is null . unityEngine.object.CheckNullArgument 解决:将变量改为暴露变量+public
7、error CS1502:The best overloaded methoalde match for‘unityEngine Debug.Log(、、)has some invalid arguments.
error CS1503:Arguments ‘# 2‘ cannot ‘convert‘ float‘expressimt tyoe‘unityengine.Object‘.
解决:在Log("speed ",speed)中,用+-------------Log("speed"+speed).
unity3d 之-error记,布布扣,bubuko.com
原文:http://blog.csdn.net/callchunli/article/details/23202411