• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,363 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0043 秒)

1071. 调用创建微信授权按钮时,授权按钮有时候显示有时候不显示 [ 50%]

...uBtn();                     SocketManager.instance.sendlogin();                     //LayaSample.gameLoad.toStartGame()                  }                 else                 {                 ...

来源: Laya_社区 发布时间: 20190109

1072. native打包成app使用FileReader接口readAsArrayBuffer 时app崩溃 [ 50%]

...reader.readAsArrayBuffer(data);                     console.log("############################");                                          reader.onload = function(e){                         instance.buffer.push(reader.result);   只要...

来源: Laya_社区 发布时间: 20180410

1073. spine 播放错乱 [ 50%]

...or() { console.error("load spine error"); } private play(): void { console.log("1111111111"); if (++this.index >= this.skeleton.getAnimNum()) { this.index = 0; } this.skeleton.play(this.index, false, true); }   正常示例   附件 : --> spine.zip 2021-08-13 添加评论 免费帖 --> 分享 ...

来源: Laya_社区 发布时间: 20210813

1074. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 50%]

...; public pageWidth: number; public pageHeight: number; onStart() { console.log("Game start"); Laya.loader.load("resources/res/spineboy-pma.skel", Loader.SPINE).then((templet: SpineTemplet) => { this.skeleton = new SpineSkeleton(); this.skeleton.templet = templet; this.owner.addChild(this.skeleton...

来源: Laya_社区 发布时间: 20230703

1075. 3D项目,如何判断一个3D模型是否在摄像机的范围内,有没有这方面的接口,,, [ 50%]

... mesh = this.owner.getChildAt(1) as Laya.SkinnedMeshSprite3D; console.log(mesh.skinnedMeshRenderer.isRender); 这是我测试时的模型和代码,实际使用根据模型的导出的层级和类型而定。附:我使用的是2.6.1版本,据说2.5之后都是改成这样了,之前可以...

来源: Laya_社区 发布时间: 20181009

1076. laya2.0 截图功能分享,直接截取屏幕上所有对象 [ 50%]

...为安卓机型解决 ) 2 ios下 截取后 赋值给sprite 没有反应。log里texture对象跟安卓下的texture对象没有区别。 2020-09-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 18120789265 相关问题 分享:LayaAir...

来源: Laya_社区 发布时间: 20191016

1077. Laya2.6 物理系统内存泄漏与设计不合理的PhysicsSimulation [ 50%]

...esourceManager吗?有没有例子? 关于优化求助思路,运行时log 内存500M多,IPhone6还是卡死 Laya2.6、2.7等支持async、await编译经验分享 设计模式下发布之后,打包的图集没有json文件 laya2.0调用scene.gc方法,再次加载同一份资源时候,会...

来源: Laya_社区 发布时间: 20200410

1078. Sprite.loadImage在Android平台无法卡死,web和iOS平台正常 [ 50%]

...台正常 在Android平台使用Spirte.loadImage方法初始Sprite卡死,log中一直打印日志“JCGraphicsCmdDispath::calcBoundingBox Wrong command number!,cmd=-65536” 同样的代码和图片地址在web和iOS平台正常; 代码如下: /** * widget: 放置头像的父节点 * headImgUr...

来源: Laya_社区 发布时间: 20171229

1079. this.scene.physicsSimulation.rayCastAll 报错 [ 50%]

...xt.text = "点击到了" + this.outHitResult.collider.owner.name ; console.log("碰撞到物体!!") }   上述代码运行时候报错,一直无法解决,请求大佬帮忙看一下问题?(.scene.physicsSimulation属性为灰色,不可使用)     报错如下:         附件...

来源: Laya_社区 发布时间: 20190523

1080. 阻止点击穿透问题 [ 50%]

...e.runing = true; Game.stepNum = Math.floor(Math.random() * 6) + 1; console.log(Game.stepNum) Animate.role(Game.stepNum); } },[this.items.shaizi]);  弹层的代码: this.prizeAlertLayer = new Sprite(); this.prizeAlertLayer.zOrder = 90; this.prizeAlertLayer.size(W, H);   let bg = new Sprite(); bg...

来源: Laya_社区 发布时间: 20180601