大约有 260 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0054 秒)
Laya_社区(237) Laya2.0_文档(13) Laya3.0_文档(4) Laya2.0_api(3) laya_api(1) Laya3.0_api(1) Laya2.0_示例(1)
Handler.create() 方法第四个参数once默认值的API为false,而引擎得实际默认值为true 如题 附件 : --> 2019-03-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 kylin 赞同来自: 检查了...
来源: Laya_社区 发布时间: 20190319
Laya.Scene.open方法中的complete的handler在IDE中调试正常,但在微信小游戏中不返回,请问是什么原因。 Laya.Scene.open方法中的complete的handler在IDE中调试正常,但在微信小游戏中不返回,请问是什么原因。 2019-02-20 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20190220
... Laya.SoundManager.playMusic("music/d1.mp3", 1, new Laya.Handler(this, this.onComplete2)); this.d2m = Laya.SoundManager; this.d2m.playSound("music/bg.mp3", 0, new Laya.Handler(this, this.onComplete2)); } onComplete2() { ...
来源: Laya_社区 发布时间: 20200925
...rogress$bar.png", type : Laya.Loader.IMAGE}, ] Laya.loader.load(res_array, Handler.create(null, onLoaded)); } function onLoaded() { var res_array = [ {url : "res/atlas/comp.atlas", type : Laya.Loader.ATLAS}, ] Laya.loader.load(res_array, Handler.create(null, onLoaded2)); } function onLoaded2() { Lay...
来源: Laya_社区 发布时间: 20180803
...aya.Tween.to(obGold, {value:__data.gold}, 1000, Laya.Ease.linearNone, Laya.Handler.create(this, function(){ trace('obGold.value', obGold.value) }), 0) tweenGold.update = updateGoldHandler 写法没问题吧!!! 2019-05-20 添加评论 ...
来源: Laya_社区 发布时间: 20190520
关于下拉列表的选择触发 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map....
来源: Laya_社区 发布时间: 20180719
... 当切到前台时 定时器会补完所有的缺省调用 while (t >= handler.exeTime) { handler.exeTime += handler.delay; handler.run(false); } 在后台挂的时间越久 会短时间造成大量的更新 2020-10-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20201020
...10 Returns Media Methods Static getMedia getMedia(options: any, onSuccess: Handler, onError: Handler): void Defined in laya/device/media/Media.ts:28 获取用户媒体。 Parameters options: any 简单的可选项可以使{ audio:true, video:true }表示同时捕捉两者。详情见https://develope...
来源: Laya3.0_api 发布时间: 20231115
...,是一个模拟的进度值。。 progress的回调你用的是Laya.Handler.create吗?如果是的话里边的最后一个参数你是不是没有修改呢? 2018-03-21 0 9 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jinfawu 相...
来源: Laya_社区 发布时间: 20180321
...props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 * @param duration 花费的时间,单位毫秒。 * @param ease 缓动类型,默认为匀速运动。 ...
来源: Laya_社区 发布时间: 20180621