美文网首页
Unity 之坑

Unity 之坑

作者: iLeen | 来源:发表于2020-12-30 14:18 被阅读0次

1.升级到macOS 10.15 Catalina 后,Unity2017项目导入音频文件直接崩溃。
解决方案:
下载最新版本Unity,如2018,找到目录Unity.app/Contents/Tools/FSBTool,
复制所有文件到原2017目录下。

2.升级到macOS 10.15 Catalina 后,用UnityDownloadAssistant安装时提示
“the contents of this disk can't be changed”
问题原因是Catalina的APFS文件系统

解决方案:
a.通过Hub下载。如何取得UnityHub内旧版本Unity下载链接
https://zhuanlan.zhihu.com/p/106132063
b.下载种子文件。

3.Mac Unity console出现空白error
原因:项目中有js脚本,更新到C#

  1. ARFoundation 1.5 打包安卓后屏幕闪烁,关闭 PlayerSettings 中的 Multithreaded Rendering

  2. 升级到macOS 10.15 Catalina 后,老版本Unity5.6.6 无法打开,貌似与APFS文件系统有关。

  3. 在Mac上使用 System.Drawing (gdiplus.dll)
    新版unity:
    /Applications/Unity/Hub/Editor/X.X.X/Unity.app/Contents/MonoBleedingEdge/etc/mono/config
    旧版unity:
    /Applications/Unity/Hub/Editor/X.X.X/Unity.app/Contents/Mono/etc/mono/config
    增加
    <dllmap dll="gdiplus" target="/Library/Frameworks/Mono.framework/Versions/XXX/lib/libgdiplus.dylib" os="osx"/>
    <dllmap dll="gdiplus.dll" target="/Library/Frameworks/Mono.framework/Versions/XXX/lib/libgdiplus.dylib" />

  4. Xcode打包上传时一直显示 Sending analysis to App Store
    (1) Just create new certificates for your account.. from `Xcode -> preference -> Accounts -> select your team account -> press manage certificates press (+) to add development certificate and ios distribution certificate..
    或(2)Removing account from Xcode -> preference -> Accounts and re-add it

  5. Unity真机报错Could not produce class with ID xx
    https://blog.csdn.net/shaobing32/article/details/123120420

相关文章

网友评论

      本文标题:Unity 之坑

      本文链接:https://www.haomeiwen.com/subject/korhoktx.html