700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > Type has an extra field of type in the player and thus can‘t be serialized error

Type has an extra field of type in the player and thus can‘t be serialized error

时间:2024-02-13 23:56:38

相关推荐

Type has an extra field of type in the player and thus can‘t be serialized error

unity打包安卓的时候碰见标题的报错。

出现问题的步骤是这样的:打一次Debug包再打release包都是正常的,在打了release之后再打Debug就会出现没法构建Assetbundle的情况,查看日志发现了如标题所示的报错。

/threads/type-has-an-extra-field-of-type-in-the-player-and-thus-cant-be-serialized-error.497963/

在网上搜索一番,同事试了这个论坛上的(除取消公有变量)的各种方法。

删除Temp和library文件夹、在构建之前运行Unity一次。都只能解决一次问题。昨天试了一下把mono脚本的公有字段改成属性(改成属性也不会序列化),把UGUI的各个组件改成private用脚本赋值之后解决了问题。还不清楚为什么会产生这个问题。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。