环境:Unity 2021.3.25f1
最近做的项目中经常会出现通过Bundle加载的Particle System显示不全的问题,查阅Unity官方的文档是这样说明的:
Meshes must be read/write enabled to work on the Particle System
. If you assign them in the Editor, Unity handles this for you. But if you want to assign different meshes at run time, you need to check the Read/Write Enabled setting in the Import Settings.
有比较简单粗暴的解决方法,在打AssetBundle之前扫一遍特效用的FBX文件夹,将所有FBX的Read/Write打开即可。
但实际表现来看,并非所有使用了FBX但未开启Read/Write的特效都不显示。经过我的测试,有以下几种情况也可以让特效正常显示
1.将FBX和特效的Prefab打包到一个AssetBundle中
2.在Read/Write关闭的情况下,调整其他参数也可以让特效正常显示,例如Convert Units、Mesh Compression,应该还有其他参数会影响,待补充。
详情还可参考这个帖子:
Question - ParticleSystem meshes must be read/write enabled to work - Unity Forum
标签:特效,Read,FBX,Write,Unity,AssetBundle,加载 From: https://www.cnblogs.com/sanchan/p/17789892.html