[]生成的粒子特效怎么设置colorComponentInter无效?
function UILetterBox(letter, width) {还是会有几种颜色,我希望跟在IDE里预览的时候效果一样 只有一种
UILetterBox.super(this);
letter = letter;
this.loadImage('res/jiezou/wenzi2.png');
Laya.loader.load("res/parts/qipao.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON);
}
function onAssetsLoaded(settings) {
settings.colorComponentInter = true;
sp = new Particle2D(settings);
sp.emitter.start();
sp.play();
sp.x = 90;
sp.y = 55;
this.addChild(sp);
}
我这样设置再传入Particle2D不对吗?
settings.colorComponentInter = true;
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
cuixueying
赞同来自: zhishaofei3
zhishaofei3
赞同来自: