由于pc机子太老了,所以一直都是在mac下面写unity程序,然后在拷贝到pc上生成apk到手机上,今天在移植的时候就出现了问题,在mac机子和pc机子上都运行的好好的,但编译到手机上的时候出现了如下的错误:
Couldn't build player because of unsupported data on target platform
Building - Failed to write file: sharedassets0.assets
UnityEditor.HostView:OnGUI()
An asset is marked as dont save, but is included in the build:
Unity编译错误:Unsupported data on target platform解决方案

在将Unity程序从Mac移植到其他平台,如PC或手机时,遇到'Couldn't build player because of unsupported data on target platform'错误。问题根源在于使用了未在目标平台上可用的动态字体。解决方案是确保引用的字体文件存在于项目中,或者使用系统已有的字体。在本例中,将NGUI的动态字体更改为位图字体解决了问题。
最低0.47元/天 解锁文章
3万+

被折叠的 条评论
为什么被折叠?



