-
Notifications
You must be signed in to change notification settings - Fork 370
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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')
The text was updated successfully, but these errors were encountered: