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

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

471. [LayaNative2]pad外设键盘无法捕获到KEY_DOWN,KEY_UP,KEY_PRESS事件 [ 80%]

...请问该如何解决?   以下事件无法触发: Laya.stage.on(Laya.Event.KEY_PRESS, this, this.handleKeypress); Laya.stage.on(Laya.Event.KEY_DOWN, this, this.handleKeydown); Laya.stage.on(Laya.Event.KEY_UP, this, this.handleKeyup);   版本:2.13.3 附件 : --> 事件代码.docx 2024-02-28...

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

472. 为什么说没有​ playByFrame方法 [ 80%]

...name=='anifish'){ anifish.player.playByFrame(0,1.0,0,40,72,30); anifish.on(Event.COMPLETE,this,complete) function complete(){ alert(1) } Monica • 2017-09-27 14:22 @haiboannacom:Event前边加个Laya.看看 haiboannacom • 2017-09-27 14:25 @Monica:第三条鱼我加了这个了。也不行。anifi...

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

473. 鼠标事件能否在有图形的区域感应,特别是子项坐标为负数时(已经找到问题) [ 80%]

...(已经找到问题) package { import laya.display.Sprite; import laya.events.Event; public class MainUi extends Sprite { private var testPan:Sprite; public function MainUi() { super(); this.graphics.drawRect(0,0,500,500,"#fff0cc"); testPan = new Sprite(); testPan.name = "testPan"; this.addChild...

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

474. 如何代码触发layaCanvas的mouseDown事件 [ 80%]

如何代码触发layaCanvas的mouseDown事件 在laya.events.MouseManager中layaCanvas有mouseDown事件的监听,现在我在使用fairyUI中使用list.displayObject.event(Event.MOUSE_DOWN),在MouseManager的监听里收不到。想知道怎么用代码达到鼠标点击的效果 2020-04-13 ...

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

475. laya.resource.RenderTexture_API3.0 [ 80%]

... _removeReference _setCPUMemory _setCreateURL _setGPUMemory _start destroy event getData gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once recreate clearPool configRenderContextInstance createFromPool destroyUnusedResources recoverToPool Constructors constructor new Rende...

来源: Laya3.0_api 发布时间: 20231115

476. MovieClip 报错 [ 80%]

...代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find"); return; } //保护修改-----en...

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

477. 分享一个虚拟摇杆,比较粗糙,没做优化 [ 80%]

...{ console.log(this.moveKey, this.layer, this.moveMax) this.moveKey.on(Laya.Event.MOUSE_DOWN, this, this.downFun); //记录一开始小圆点的位置,方便鼠标弹起的时候自动返回开始位置 this.moveKey.mode = {x: this.moveKey.x, y: this.moveKey.y} } //按下事件 ModeKey.prototype.do...

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

478. MovieClip 报错 [ 80%]

...代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find"); return; } //保护修改-----en...

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

479. UI-RefreshList [ 80%]

...种开发语言、LayaAirIDE让项目开发更高效。Stage = Laya.Stage; Event = Laya.Event; Box = Laya.Box; List = Laya.List; Handler = Laya.Handler; WebGL = Laya.WebGL; Animation = Laya.Animation; Label = Laya.Label; Text = Laya.Text; Point = Laya.Point; Tween = Laya.Tween; TextArea = Laya.TextA...

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

480. laya.resource.RenderTexture2D_API3.0 [ 80%]

...emoveReference _setCPUMemory _setCreateURL _setGPUMemory clear destroy end event getData getIsReady gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once restore start destroyUnusedResources popRT pushRT Constructors constructor new RenderTexture2D(width: number, height: numb...

来源: Laya3.0_api 发布时间: 20231115