大约有 387 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
Laya3.0_api(106) Laya_社区(101) Laya2.0_文档(64) Laya2.0_api(57) laya_api(41) Laya3.0_文档(12) Laya2.0_示例(4) Laya_示例(2)
...Laya.Templet; public mArmature: Laya.Skeleton private _handler: Laya.Handler; constructor(url: string, handler: Laya.Handler, aniMode: number = 0) { this._handler = handler; this.mFactory = new Laya.Templet(); ...
来源: Laya_社区 发布时间: 20200618
Handler.create的回收问题 Handler.create的最后一个参数,官方解释是 once:Boolean (default = true) — 是否只执行一次,如果为true,回调后执行recover()进行回收,默认为true。可下面代码为什么结果是false? module laya { import Stage = Laya.Stage; impor...
来源: Laya_社区 发布时间: 20171221
...ya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } onAssetsLoaded(settings) { // 当load数组的时候,回调函数传入的参数不再是资源,可以通过以下方法获取资源 // let settings = Laya....
来源: Laya2.0_示例 发布时间: 20251130
...据子节点对象,获取子节点的索引位置。参数是什么 Laya.Handler.create 加载图片回调参数问题 Dispather.event参数传的是数组,为什么收到的参数却是个int类型? http 请求 once 的 回调参数,如何传递和接收? 点击按钮打开对话框的时...
来源: Laya_社区 发布时间: 20180720
..."res/atlas/f3.atlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"], Laya.Handler.create(this, function(){ }), Laya.Handler.create(this, function(e){ console.log(e) } , Laya.Loader.ATLAS); 此时进度e的值只有一个数0.41 ,不会从0到1,这是什么原因? 2018-01-01 添加...
来源: Laya_社区 发布时间: 20180101
...ya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } onAssetsLoaded(settings) { // 当load数组的时候,回调函数传入的参数不再是资源,可以通过以下方法获取资源 // let settings = Laya....
来源: Laya2.0_示例 发布时间: 20251130
...ya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } onAssetsLoaded(settings) { // 当load数组的时候,回调函数传入的参数不再是资源,可以通过以下方法获取资源 // let settings = Laya....
来源: Laya2.0_示例 发布时间: 20251130
...Scene = scene Laya.Scene.setLoadingPage(scene) } /** * 打开场景 * otherHandler 执行时间小于 loadScene 使用此方法 * otherHandler 不会阻塞 loadScene * @param {String} url 要打开的场景 * @param {Promise} otherHandler 同时执行的其它事件 * @param {Boolean} closeOther 关...
来源: Laya_社区 发布时间: 20181124
...ngle; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class HelloLayabox { private const AniConfPath:String = "../../../../res/role.atlas"; private var roleAni:Animation; public function HelloLayabox() { // 不支持WebGL时自动切换...
来源: Laya2.0_文档 发布时间: 20210715
Laya.Scene.open方法中的complete的handler不返回 Laya.Scene.open方法中的complete的handler在IDE中调试正常,但在微信小游戏中不返回,请问是什么原因。 2019-02-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20190219