代码中如何ParticleSystem加载plist文件,请教!
let particleNode = new cc.Node();
let particle = particleNode.addComponent(cc.ParticleSystem);
particle.file = cc.url.raw("resources/explore.plist");
this.node.addChild(particleNode);
谢谢你,我大概的实现方式也是这样!
请问如何设置texture?好像无效
let particleNode = new cc.Node();
let particle = particleNode.addComponent(cc.ParticleSystem);
particle.file = cc.url.raw(“resources/explore.plist”);
particle.texture = cc.url.raw(“resources/test.png”);
this.node.addChild(particleNode);