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

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

551. Keyboard Event如何获取按下某个键 [ 68%]

...nt如何获取按下某个键 定义了一个Input,绑定了键盘事件:this._ipt.on(Laya.Event.KEY_DOWN, this, this.OnInput); private OnInput(evt : EVENT) : void { // 这里怎么获取具体哪个键被按下?。。。 } 2018-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

552. Array没有SortOn方法? [ 68%]

...预加载声音文件,然后再调用 调用动画结束on方法,报错this.zombieAnimator.on is not a function 问题状态 最新活动: 2017-01-17 15:54 浏览: 1547 关注: 2 人

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

553. 关于ASTC使用问题和建议 [ 68%]

...上使用的png格式的图片,使用的同步的编程方式,及: this.img.texture = "ui/guide01.png"; 或者是 let tex = new Laya.Texture(); tex.load("ui/guide01.png", Laya.Handler.create(this, ()=>{   this.img.texture = tex; }));   但是如果使用ASTC纹理时就会报错,需要...

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

554. 从网络上下载的BMP图片二进制数据后,如何赋值给 laya.ui.Image [ 68%]

...new laya.net.HttpRequest();         req.on(laya.events.Event.COMPLETE, this, cb_onSuccess);         req.on(laya.events.Event.ERROR, this, cb_onFail);         req.send(url);      }      // 下载jpg图片成功后,显示在舞台上,response为 bmp图片二进制     function ...

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

555. Steam扩展实例 · LayaAir3.4 · 引擎文档 · LAYABOX [ 68%]

...perty({type: Laya.Button}) public initBtn: Laya.Button; onEnable(): void { this.initBtn.on(Laya.Event.CLICK, this.onInit); } onInit() { alert(extendLib.initializeSteam()); } } 构建发布Windows后,需要在exe的同级目录下,新建一个steam_appid.txt 文件,其中只包含 AppID。 (...

来源: Laya3.0_文档 发布时间: 20251010

556. DrawPie例子中无法显示遮罩区域 [ 68%]

...ld(ape); ape.loadImage("../../res/apes/monkey3.png"); //创建遮罩对象 this.cMask = new Laya.Sprite(); //画一个圆形的遮罩区域 this.cMask.graphics.drawPie(80,80,50, 0, 360,"#ff0000"); this.cMask.pivot(80,80); //Laya.stage.addChild(this.cMask); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, ...

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

557. 关于遍历产生的sprite的点击事件,急,大神帮看哈 [ 68%]

...对sp进行CLICK的监听即可,sp.size(xxx,xxx);sp.on(Event.CLICK,this,onSpClick) 3、点击sp时,直接获取sp.index值即可(e.target.index)! 2017-02-21 1 0 分享 微博 QZONE 微信 lift6220819 赞同来自: q395212409 Laya.init(640,1010); Laya.stage.scaleMode = Laya.Stage.SCALE_...

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

558. Dialog 关闭效果无效 [ 68%]

...ar 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_.onCloseEffect = function () { console.log("in on...

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

559. 改造原生调用 [ 68%]

...调用?如图 ios原生回调问题 调用动画结束on方法,报错this.zombieAnimator.on is not a function 创建模型以后,调用destroy,以前clone的对象也消失了 laya2.0调用scene.gc方法,再次加载同一份资源时候,会导致gpu内存不断增加! laya支持批处...

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

560. 取消监听鼠标移动事件,取消不了 [ 68%]

...听鼠标移动事件,取消不了 Laya.stage.off(Laya.Event.MOUSE_MOVE,this,null); 第三个参数是函数,不能为null吗?是不是和on绑定时的同一个函数,如果on里面用匿名函数,off第三个参数怎么写? 2018-06-23 添加评论 免费帖 --> 分享 微博 QZONE 微...

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