杜三颤

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

环境: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.在FBX的设置中,Read/Write关闭,Convert Units 关闭,Mesh Compression打开

3.待补充。

 

详情还可参考这个帖子:

Question - ParticleSystem meshes must be read/write enabled to work - Unity Forum

posted on 2023-10-26 17:19  杜三颤  阅读(43)  评论(0编辑  收藏  举报