particleSystem怎么动态修改贴图

请问使用type的话就是cc.SpriteFrame吧
然后赋值的时候是要赋texture吗

就type: cc.Texture2D就好了,参见文档v1.10资源升级指南

今天用ts试了一下
如果用type: cc.Texture2D赋值给texture发现一直为null
提示说texture只读 用spriteframe


然后改成spriteframe就可以了


但是昨天我用js脚本一样是把spriteframe赋给particlesystem的spriteframe却崩溃了
真是神奇
总之谢谢大佬了