[]回调函数传递sprite3D问题

使用
Laya.timer.frameLoop();函数
看了官方API,第四个参数是传一个数组,作为回调函数的入参,
    var spriteArray = new Array();
spriteArray.push(warehouse1);
Laya.timer.frameLoop(1, this, freshBubble,spriteArray);
function freshBubble(sprites) {
var spr = sprites[0];
xp = (((-25) - cameraX) * ((-25) - cameraX)+( 0 - cameraY) * ( 0 - cameraY) + ( 0 - cameraZ)*( 0 - cameraZ));
camera.viewport.project(spr.transform.position, camera.projectionViewMatrix, _outPos);
msg1.scale(300/xp, 300/xp);
msg1.pivot(msg1.width,msg1.height);
msg1.pos(_outPos.x / Laya.stage.clientScaleX,(_outPos.y / Laya.stage.clientScaleY)-20);
}
我这样写 为什么在freshBubble里拿不到这个?有示例可以参考一下吗?感激不尽
已邀请:

bing8310124

赞同来自:

报错内容是
TypeError: Cannot read property 'transform' of undefined
at freshBubble (file:///E:/LayaWorkspace/javaScriptLaya/src/doShow3D.js:130:36)
at TimerHandler.__proto.run (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:9504:19)
at Timer.__proto._update (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:9237:16)
at Stage.__proto.render (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:17832:15)
at Stage.__proto._loop (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:17790:8)
at loop (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:5219:15)
 

要回复问题请先

商务合作
商务合作