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

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

11. Laya如何使用Promise、async、wait分享! [ 86%]

...⽂档中有详细 说明。 target 定义为 es2017 是为了⽀持 async 函数,但这个配置没有默认 lib 列表,所以 参考官⽅⽂档对 --target es6 使⽤的 lib 列表,补充 es2017 类型库即可。 其实就是说,如果 target 不是 es2017 就是不⽀持 async 函数,...

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

12. laya.media.Sound_API3.0 [ 86%]

... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...

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

13. 请问如何给ui下所有的button加一个点击监听事件? [ 86%]

...信 yao 赞同来自: 给Laya.stage添加点击事件监听,然后监听函数参数的target判断是不是button来做。 Laya.stage.on(Laya.Event.CLICK, this, function(res:Laya.Event){ if (res.target instanceof Laya.Button){ // click button } }) 2018-12-01 0 0 分享 微博 QZONE 微信 为什...

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

14. laya.d3.animation.AnimationTransform3D_API3.0 [ 85%]

... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...

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

15. 事件管理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 84%]

...件通知。 * @param type 事件的类型。 * @param caller 事件侦听函数的执行域。 * @param listener 事件侦听函数。 * @param args (可选)事件侦听函数的回调参数。 * @return 此 EventDispatcher 对象。 */ on(type: string, caller: any, listener: Function, args: an...

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

16. Laya.Tween.to 有没有监听值的变化的方法? [ 84%]

...认为匀速运动。          * @param   complete 结束回调函数。          * @param   delay 延迟执行时间。          * @param   coverBefore 是否覆盖之前的缓动。          * @return  返回Tween对象。          */       ...

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

17. LayaAir开发笔记(1)五十音图连连看 [ 83%]

...ext当标题,加了版权信息,并且为版权信息注册了个匿名函数,点击会跳转到我的个人网站。// 设定背景 var background = new Laya.Sprite(); background.loadImage("linkgame_back.jpg"); background.cacheAsBitmap = true; Laya.stage.addChild(background); // 设定标题 ...

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

18. laya.media.SoundChannel_API3.0 [ 83%]

... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...

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

19. laya.net.HttpRequest_API3.0 [ 83%]

... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...

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

20. laya.device.motion.Gyroscope [ 82%]

...使用Gyroscope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):void absolute: 指示设备是否可以提供绝对方位数据(指向地球坐标系),或者...

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