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

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

511. 区块地图-滚动地图 [ 56%]

...; } /** * 地图加载完成的回调 */ private completeHandler(): void { console.log("地图创建完成"); console.log("ClientW:" + Browser.clientWidth + " ClientH:" + Browser.clientHeight); Laya.stage.on(Laya.Event.RESIZE, this, this.resize); this.resize(); } //鼠标按下拖动地图 private m...

来源: Laya2.0_示例 发布时间: 20241001

512. 获取Sprite位置问题 [ 56%]

...域 var bound:Laya.Rectangle = this.body.getBounds();  //this.pos(100,0); console.log(-bound.width/2 + " --- "+ -bound.height/2); }  onPlayComplete():void{  } } 请问为啥bound.width bound.heigh这是0? 2018-04-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

513. Animation创建时无法获取高度 [ 56%]

...his.root.addChild( roleAni ); roleAni.pivotY = roleAni.getBounds().height; console.log("---> ", roleAni.getBounds() ); 打印为 ---> Rectangle {x: 0, y: 0, width: 0, height: 0}修改anchorY值无效 2017-08-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

514. 重发问题: 点击页面会导致setTimeout setInterval 延迟执行 [ 56%]

...setInterval明显延迟执行; Laya.stage.on('click', null, function (e) { console.log.log(`click`); }); 即使我将所有的事件绑定全部注释掉频繁的点击页面也会卡住!!!!! 我在事件的处理函数中设置stopPropagation没有任何作用; 现在这个是一个很大的问题,...

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

515. 请教个问题:如何重绘sharedCanvas [ 56%]

...绘 sharedCanvas” 我的代码如下: if (message.cmd == "render") { console.log("重置共享数据域"); let sharedCanvas = Laya.Browser.window.sharedCanvas; sharedCanvas.width = 0; sharedCanvas.height = 0; // let tempMatrix = message.matrix; // let matrix = new Laya.Matrix(); // matrix.a = te...

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

516. 如何获得特效的宽高 [ 56%]

... ani.once(Laya.Event.LOADED,null,function(ani1){                 console.log(ani1.getGraphicBounds());             });   这样写的话监听不到           2017-06-28 0 1 分享 微博 QZONE 微信 cuixueying 赞同来自: 你用Laya.timer.once加个延迟看下呢? 2017-06...

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

517. Stage中删除不掉Scene [ 56%]

...     } else {         Laya.stage.removeChild(scene3D);     }     console.log(str); });     每次删除scene3D后又被添加进来了。不知道什么原因,是stage中的scene不能被删除吗? 2017-10-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

518. [LayaAir3]spine 销毁时不会自动销毁定时器 [ 56%]

...如何获得场景内的元素 web端打包发布后能不能自动删除console.log spine动画播放后图集错乱 微信小游戏与加载图片时不会触发erroe事件 Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个...

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

519. 一个没有动作的骨骼动画 替换插图没有用 [ 56%]

...his.skebqb.replaceSlotSkinName("chuandiwu","","bianbian");         console.log("1111");     }   使用了模板 其他可以动的动画是可以正确替换贴图的 但是播放0帧的动画时 替换贴图不行 附件 : --> 2020-12-31 添加评论 免费帖 --> 分享 微博 QZONE ...

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

520. Laya.Event.RESIZE 栈溢出问题 [ 56%]

...aya.Stat.show(0, 0); Laya.stage.on(Laya.Event.RESIZE, Laya.stage, ()=>{ console.log(111) Laya.stage.width = 600 * Laya.Browser.pixelRatio; }) } } new GameMain(); 2018-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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