Unity使用过程中遇到的问题

一、Assets/NGUI/Examples/Scripts/InventorySystem/System/InvEquipment.cs(58,25):erro CS0266:Cannot implicitly canvert type 'UnityEngine.Component' to 'UnityEngine.Renderer'.An explict conversion exists(are you missiing a cast?)

过程:将NGUI文件夹移除后又安装了一次NGUI插件,两次安装的插件版本不一样


原因:对应的Unity版本需要安装与其相对应的NGUI插件

解决办法:安装正确的与Unity版本相对应的NGUI插件


二、Can't add script component 'MoveCamera' because the script clas cannot be found.Make sure that ther are no compile errors and that the file name and class name match.

过程:给Main Camera添加C#脚本时,出现如下弹框



原因:这个文件编译时可能出错

解决办法:关闭Visual Studio,然后重启,可以看到如下弹框,点击是


三、Please set the Bundle Identifier in the Player Settings.

过程:将unity导出成android的apk的时候出错


原因:需要先设置Player Settings。应该遵循如下惯例:com.公司名.项目名,可以包含数字、字母和下划线。不能以数字或下划线开头

解决办法:点击Build Settings下方的Player Settings,在Inspector视图下出现PlayerSettings界面


输入Company Name、Product Name、Package Name



四、在同一台电脑上打开多个项目

1.在开始菜单找到Unity的快捷方式,右键点击“属性”


2.选择“快捷方式”标签页,然后在目标的地方加上“-projectPath”,然后点击“确定”












评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值