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

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

11. laya.resource.NativeRenderTexture2D_API3.0 [ 79%]

...ference _setCPUMemory _setCreateURL _setGPUMemory _start clear destroy end event getData getIsReady gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once recycle restore start destroyUnusedResources popRT pushRT Constructors constructor new NativeRenderTexture2D(width: number...

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

12. laya.events.Keyboard_API3.0 [ 78%]

... Public/Protected All Inherited Externals Only exported Menu Globals "laya/events/Keyboard" Keyboard Class Keyboard Keyboard 类的属性是一些常数,这些常数表示控制游戏时最常用的键。 Hierarchy Keyboard Index Properties A ALTERNATE B BACKQUOTE BACKSLASH BACKSPACE C CAPS_LOCK C...

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

13. 2.x引擎项目升级指南 · LayaAir3.0文档 · LAYABOX [ 78%]

...Laya.Script命名函数方式处理输入。例如: this.aNode.on(Laya.Event.CLICK, ()=> { console.log("clicked"); }); class MyScript extends Laya.Script { //脚本事件 onMouseClick(e:Event) { console.log("clicked"); } } aNode.addComponent(MyScript); 以上两种方式是等价的,且在纯...

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

14. 如何能监听到TouchStart和TouchEnd事件 [ 77%]

...链接 提交 2 个回复 189*****192 赞同来自: Sean8023 Laya.stage.on(Event.MOUSE_UP, this, onApeRelease); Laya.stage.on(Event.MOUSE_DOWN, this, onApeRelease); 通过 Event  类型 监听动作  class Event {         /** 一个空的 Event 对象。用于事件派发中转使用。*/ ...

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

15. MovieClip 的 bug [ 76%]

...代码来添加保护: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_社区 发布时间: 20180910

16. scroller滚动监听问题 [ 76%]

... 赞同来自: ht657990995 我看代码里在滚动结束的时候派发了Event.end事件,你监听这个事件没有收到返回吗? 2017-10-08 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ht657990995 相关问题 发起问题须...

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

17. laya.d3.resource.RenderTextureCube_API3.0 [ 74%]

... _removeReference _setCPUMemory _setCreateURL _setGPUMemory _start destroy event getData gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once recreate clearPool createFromPool destroyUnusedResources recoverToPool Constructors constructor new RenderTextureCube(size: number, c...

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

18. 使用外部引擎播放layaair制作的.ani [ 74%]

...舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.play(); tl.on(Event.COMPLETE, this, () => {console.log('end')}); } 2018-08-23 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zyx 相关问题 看了其他引擎才发现 LAYA ...

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

19. laya.d3.resource.MulSampleRenderTexture_API3.0 [ 73%]

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

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

20. LayaAir引擎与原生Flash的差异文档说明! [ 73%]

...ask.graphics.drawCircle(0,0,50); mask.graphics.endFill(); sp.mask=mask; addEventListener(Event.ENTER_FRAME,function():void { mask.x++; mask.cacheAsBitmap=true; sp.cacheAsBitmap=true; }); LayaAir环境下: 1、静态遮罩  Laya.init(600,400) var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,20...

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