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

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

271. 关于裁剪的问题 [ 74%]

...用sprite的viewport去做,代码如下,但是图片不会被裁剪: loginUI.bbbar.viewport = new laya.maths.Rectangle(0, 0, 0, loginUI.bbbar.height) Game.timer.loop("progress", this, function() { //console.log("loginUI.bar.value = ", loginUI.bar.value); loginUI.bbbar.viewport.width = loginUI....

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

272. 怎么对动画进行毎帧侦听? [ 74%]

...unction _OnComplete() {   var bounds = ani.getGraphicBounds();   console.log(bounds.width);   console.log(bounds.height); } 这样的话获取动画宽高  还是只会取到第一帧宽高  并没有办法取到毎帧的宽高 2017-07-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

273. QQ小游戏demo跑不起来 MiniFileMgr.fs.readFile无回调 [ 74%]

...ength; i++) {         let fileUrl = files;         console.log("加载文件测试", i, fileUrl);         MiniFileMgr.readFile(fileUrl, "utf8", Laya.Handler.create(this, function() {             console.log("加载文件测试1", i, fileUrl);         })); ...

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

274. apk中获取不到本地保存数据 [ 74%]

...链接 提交 1 个回复 浪货界扛把子 赞同来自: 1是手机上的log 2是电脑上layaair ide的log 2017-12-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 浪货界扛把子 相关问题 Layabox 2.0 bate5 运行编译之后 ...

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

275. zip更新模式缓存是怎么读取的?? [ 74%]

...('downloadOK'); //let md5 = calcmd5(fs_readFileSync(localfile)); //console.log('md5='+md5); let zip = new ZipFile(); if(zip.setSrc(localfile)){ zip.forEach((id,name,dir,sz)=>{ if(!dir){ let buf = zip.readFile(id); //console.log("update "+name); let fid = window.appcache.hashstr('/'+name); //TODO ...

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

276. 打包app 在 安卓 htc t329d 手机下不能运行。 [ 74%]

...android.app.ActivityThread.main(ActivityThread.java:5109) 附件 : --> err_log.rar 2017-12-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 12 个回复 Monica - 知识达人 赞同来自: 你这边具体是怎么操作的...

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

277. Box绑定事件失效 [ 74%]

...456 赞同来自: 代码部分: this.room_top1 = new Laya.Box(); console.log(this.room_top1) this.room_top1.on("click",this,function(){console.log("11111111111")});   2017-11-16 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 你输出下box的宽高,看看是否有值吧 201...

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

278. 控制台如何输出变量数值 [ 74%]

... 1 个回复 Laya_Aaron 赞同来自: trace(变量) 。或者 consle.log(变量) 2018-05-31 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 。 相关问题 求问shader中的attribute变量怎么动态修改 路径是对的,但老...

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

279. Dialog 关闭效果无效 [ 74%]

Dialog 关闭效果无效 代码如下: var CommonDlg = (function (_super) { function CommonDlg() { CommonDlg.super(this); } Laya.class(CommonDlg, "CommonDlg", _super); var _proto_ = CommonDlg.prototype; _proto_.closeEffect = Laya.Handler.create(null, this.onCloseEffect, null, true); _proto_.onCl...

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

280. 给以个对象绑定两个on方法为什么只能执行一次 ? [ 74%]

...            this.header.getChildByName("toggleMenu").getChildByName("log"),//日志             this.header.getChildByName("toggleMenu").getChildByName("rank"),//排名             this.header.getChildByName("toggleMenu").getChildByName("recharge")//充值         ]        ...

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