console.log("发射器宽度1: "+cube.getChildByName("dianji").getComponent(cc.ParticleSystem).posVar.x);
cube.getChildByName("dianji").getComponent(cc.ParticleSystem).posVar.x = 300;
console.log("发射器宽度2: "+cube.getChildByName("dianji").getComponent(cc.ParticleSystem).posVar.x);
属性检查器里倒是能改,不过我希望它能跟随另一个物体的宽度改变发射器的宽度.
请问老哥最后解决了吗?解决的话是怎么处理的呢
挖坟 2021-09-30
