首页 > 其他 > 详细

unity3d 之-error记

时间:2014-04-09 00:54:35      阅读:665      评论:0      收藏:0      [点我收藏+]

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

unity3d 之-error记

原文:http://blog.csdn.net/callchunli/article/details/23202411

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