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

大约有 965 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0061 秒)

671. 代码和ide编辑器添加遮罩浏览器警告 [ 52%]

...ya.Sprite(); s.graphics.drawRect(10, 10, 580, 470, "#000000"); s.pos(0,0); console.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印出的s的宽高是00,只要设置了mask,chrorme就...

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

672. 接管热更新失败的问题 [ 52%]

...更新失败会进入cofig.js里边 window.onLayaInitError==function=(e) {console.log("onLayaInitError error=" =+ e); talert(加载游戏失败,可能由于您的网络不稳定,请退出重进") } 这个方法,然后就停在这里了。这里能否再调回JAVA代码,让程序继续执行...

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

673. [LayaAir3]LayaAir3打android平台运行有Load script error 错误 [ 52%]

... 内容是没有错误 url也是对的window.onLayaInitError=function(e) { console.log("onLayaInitError error=" + e); alert("加载游戏失败,可能由于您的网络不稳定,请退出重进"); } 附件 : --> 2024-04-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

674. 小游戏导入手机后Sprite.Mask没有正常显示 [ 52%]

... sp.mask = cMask //sp.addChild(cMask) //sp.removeChild(cMask) sp.pos(7,14) console.log(cMask.x, cMask.y) }, null, "image"))   一个圆形的遮罩显示微信头像.. 2018-07-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

675. 关于微信小游戏关系链的问题 [ 52%]

...同来自: Rickshao 、qq771472501  Laya.timer.once(4000,this,function(){ console.log(Browser.window.sharedCanvas)       var rankTexture=new Texture(Browser.window.sharedCanvas);       rankTexture.bitmap.alwaysChange=true; console.log(rankTexture)       LayaUISample.scoreview.grap...

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

676. laya拖拽在部分机型(一部XR)StageX不对 [ 52%]

...      this.drag.x = e.stageX;       this.drag.y = e.stageY;       console.log(e.stageY, Laya.stage.mouseY, this.drag.y, "aaaaa")       break; } }    视频结尾的打印906是物体的坐标,手指在Y轴:1300左右移动,只有部分机型(也就那一部XR)遇到这个bug ...

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

677. 3D模型无法用Tween类吗 [ 52%]

...ationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animationDelay);   无法直接设置原因是浅拷贝变量无法同步到原对象中去   2018-01-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...

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

678. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 52%]

...]     if (json.type!=="Scene"){ if (url == "scene/Demo_Interiors.ls"){ console.log(data[0]); throw new Error("Scene: the .lh file root type must be Scene,please use other function to load this file."); } }            var innerResouMap=data[1];     Utils3D._createNodeByJson(this,jso...

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

679. 鼠标 MOUSE_DOWN Event 回来的信息不符合 [ 52%]

...SE_DOWN, this, onStartPicture(Picture); } function onStartDragPicture(e) { console.log('onStartDragPicture e', e); } 返回的信息: Event _stoped: false currentTarget: Stage {focus: null, designWidth: 1307, designHeight: 758, canvasRotation: false, canvasDegree: 0, …} nativeEvent: MouseEvent {...

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

680. 真机下运行帧率不稳定 [ 52%]

...,this,this.update); } private update() { let dt = Laya.timer.delta / 1000; console.log("dt="+dt); } } 附件中图1是在iphone6上面运行打印的信息,图2是在模拟下运行打印的信息。   请问有人碰到过这个问题吗? 附件 : --> 2018-08-08 添加评论 免费帖 --> 分...

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