Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2D 粒子 BUG #2900

Closed
mingzhizhiren opened this issue May 10, 2024 · 1 comment
Closed

2D 粒子 BUG #2900

mingzhizhiren opened this issue May 10, 2024 · 1 comment

Comments

@mingzhizhiren
Copy link

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')

@MrKylinGithub
Copy link
Contributor

麻烦将此问题提交到引擎issue,谢谢。
https://github.com/cocos/cocos-engine/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants