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

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

711. Sprite graphics的显示比例问题 [ 52%]

...ter.loadImage(skin, 0, 0, 200, 200, Laya.Handler.create(this, function () {console.log('KO!~'); })); character.graphics.drawLine(0, 200, 200, 0, "#ff0000", 1); character.graphics.drawLine(0, 0, 200, 200, "#ff0000", 1); character.graphics.drawCircle(100, 100, 100, null, "#ff0000", 1); character.graph...

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

712. 代码和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

713. Dialog.show 的 showEffect参数在微信真机上的问题 [ 52%]

...oader.load(["res/atlas/comp.atlas"], Laya.Handler.create(this, function(){ console.log("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上是正常的,但是在手机上就看不到UI。 后来经过调试,...

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

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

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

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

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

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

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

716. 关于微信小游戏关系链的问题 [ 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

717. 小游戏导入手机后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

718. 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

719. 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

720. 微信小游戏中加载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