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

大约有 2,539 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0074 秒)

821. Laya tiledmap 监听事件未响应 [ 70%]

...stPrior = true;         Laya.stage.focus = _mapSprite;         let event = _mapSprite.on(Laya.Event.CLICK, this, () => {             LogUtil.w("响应点击事件")         })     }   尝试使用focus 好像也没有响应 请问大佬们能解答一下吗 附件 : --> 2022-...

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

822. DialogUI,在内部按钮监听事件没效果是引擎设定?还是我用法错误? [ 70%]

...个按钮,confirm, cancel, 在InputTxtDialog 类里面cancel_btn.on(Event.CLICK, this, this.onCancel));没有反映,但是在调用InputTxtDialog的地方InputTxtDialog.cancel_btn.on(Event.CLICK, this, this.onCancel));是没有问题的,同样的代码,粘出来就行,在里面就不...

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

823. 有没有SoundChannel的示例? [ 70%]

...undChannel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (channel.isStoped){ channel.play(); }else{ channel.stop(); } } channel.isStoped输出是:undefined 2017-01-16 ...

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

824. video.on('complete', this, onPlayEnd);视频播完为何不触发“complete”? [ 70%]

...ayEnd);视频播完为何不触发“complete”? function onPlayEnd(evt:Event){ trace("video complete"); } 为何视频播完不触发呢? http://layaair.ldc.layabox.com ... Video 这里要是可以调试该多好~ 2017-01-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

825. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...tion; } } /** * 监听鼠标事件 */ onAwake(): void { Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); this.camera = (<Laya.Camera>this.owner); } /** * 监听键盘事件 */ onUpdate(): void { var elapsedTime: number = Laya.t...

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

826. 请问怎么把arraybuffer作为图片显示出来 [ 70%]

...行的   求大神帮忙 let xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.send("https://ask.layabox.com/static ... ot%3B, "", "get", "arraybuffer"); private completeHandler(data: ArrayBuffer) { //...

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

827. laya.d3.terrain.Terrain [ 70%]

...All Classes | Index | Frames No Frames TerrainProperties | Methods | Events Packagelaya.d3.terrainClasspublic class TerrainInheritanceTerrain Sprite3D Node EventDispatcher Object Terrain 类用于创建地块。 Public Properties Hide Inherited Public Properties Show Inherited Public Properti...

来源: Laya2.0_api 发布时间: 20190513

828. clearRes好像没作用,或许我的用法不对 [ 70%]

...  constructor() {         super();         Laya.stage.on(Laya.Event.KEY_UP, this, this.onKeyUp);     }     onKeyUp(e: Laya.Event) {         if (e.keyCode == 65) {//A             console.log("释放资源false")             Laya.loader.clearRes("res/atlas/co...

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

829. LayaAir 移动端启动鼠标右键菜单栏功能 [ 70%]

...容相关的链接 提交 1 个回复 cuixueying 赞同来自: 找到laya.events.MouseManager类文件,将该类下的以下代码注释重新编译即可 //canvas.oncontextmenu = function(e:*):*  {       // if (enabled) return false; //  }  //e.preventDefault(); 有6句,需要全部注释...

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

830. 菜鸟提问:请问使用LayaAir的话,AS3原生类以及一些第三方库完全不能用是吗? [ 70%]

...   另外显然的AS3事件机制全体阵亡喽?比如全部使用laya.event里面的事件机制是吗?   另外一些AS3非常常用的第三方库TweenMax之类的,显然也是无法用的喽?想要用的话,就得把库里面用到的原生类替换成LayaAir重新的实现的才行...

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