var myData ={}
myData = {
"capacity": 10,
"emitRate": 5,
"size":[1],
"startColor":[1,1,0,1],
"endColor":[1,1,0,1],
"emitterType":"SphereShape",
"emitterProps": [["radius","0.1"]],
"stopDuration":3,
"lifeTime":[3],
"texture":"orb", // xxx为纹理的url
"speed":[0.5],
}
const particleSystemElement = xrScene.getElementById("lizi"); // xxx为粒子系统的id命名
this.tempSystem = particleSystemElement.getComponent(xrFrameSystem.Particle)
var subEmitter = this.tempSystem.createSubEmitter(myData)
subEmitter.state = 0
this.tempSystem.subEmitters=[subEmitter]
调用subEmitters添加子发射器时报错,我试了demo案例里的粒子案例里面的内容一样会有这个报错
这里没人回。可以进微信群里问下,应该有人遇到过,不过人太多了,只能+wx:wdmwjm ,邀请进