cocos-docs icon indicating copy to clipboard operation
cocos-docs copied to clipboard

2D 粒子 BUG

Open mingzhizhiren opened this issue 9 months ago • 0 comments

URL : https://github.com/cocos-creator/creator-docs/blob/master/zh/particle-system/overview.md

//引擎版本:3.8.2 // 使用 cc.resources.load 加载粒子特效,如果file被赋值之后立刻删除,会报错 resources.load("aaa", ParticleAsset, (err, ass) => { if (err) { return; } this.Node1 = new Node() let show_particle = this.Node1.addComponent(ParticleSystem2D) show_particle.file = ass //赋值 show_particle.playOnLoad = true this.node.addChild(this.Node1) this.Node1.destroy() //删除 });

Uncaught TypeError TypeError: Cannot read properties of null (reading '0')

mingzhizhiren avatar May 10 '24 03:05 mingzhizhiren