Camera.onCameraFrame(function callback)回调为什么不执行?

小游戏 文章 2022-03-21 12:00 903 0 全屏看文

AI助手支持GPT4.0

Camera.onCameraFrame(function callback)回调为什么不执行?Why is the Camera.onCameraFrame(function callback) callback not executed?

Camera.onCameraFrame(function callback)回调为什么不执行?
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小游戏 Bug Camera.onCameraFrame(function callback) 微信安卓客户端 8.0.18 2.23.0

var camera = wx.createCamera({

success:function(res){

camera.onCameraFrame(function(res){

      console.log(123);

    })

}

});

   

真机调试、真机预览都不回调。相机是创建成功的,有画面,就是附在整个游戏上边。怎么能把这个画面作为游戏中场景相机的背景,望指点一下。

Framework type problem type API / component name terminal type wechat version basic library version games bug camera Oncameraframe (function callback) wechat Android client 8.0.18 2.23.0 var camera = Wx createCamera({ success:function(res){ camera.onCameraFrame(function(res){ console.log(123); }) } }); There is no callback for real machine debugging and real machine preview. The camera is created successfully. With pictures, it is attached to the whole game. How can this picture be used as the background of the scene camera in the game? I hope you can give me some advice.

回答:

小游戏运营专员 - 宏:

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

浪荡少年:因
湘西张氏石雕工艺:亅l丶:::r:::∵:

-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
企业微信开发的小程序的后台数据,可以同步到公司本地数据库吗?如果可以又是通过哪种方式呢
【微信商户】提现规则调整后怎么有些不自动提现了?而且还被冻结?这个怎么解决?
一加手机图片偶尔不显示
微信H5支付 系统繁忙请稍后再试?
网页应用调用agentConfig,提示not match any reliable domain?
随便看看
微信开放平台跟公众平台有什么区别? 3517
怎么添加小程序支付功能? 4311
教育科技公司申请微信支付被拒绝? 4694
微信公众号免300认证教程 5775
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 5186
小程序广告组件通过审核,但是小程序内没有显示广告? 4961
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9388
问题? 8909
如何快速搭建抽奖助手小程序(无需代码知识) 6039
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 7343