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

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

111. Laya.MiniAdpter.downLoadFile缓存的文件无法读取的问题 [ 87%]

...le.log("url: " + url); if (Laya.Browser.onMiniGame) { var args = {url:url, handler:null}; var handler = Laya.Handler.create(this, this.OnDownloadFileInWxOk, [args], false); args.handler = handler; Laya.MiniAdpter.downLoadFile(url, null, handler); } else { this.DoLoadData(url); } } protected DoLoadDa...

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

112. laya.utils.ClassUtils [ 87%]

... ClassUtils  createByJson(json:*, node:* = null, root:Node = null, customHandler:Handler = null, instanceHandler:Handler = null):*[static] 根据指定的 json 数据创建节点对象。 比如: { "type":"Sprite", "props":{ "x":100, "y":50, "name":"item1", "scale":[2,2] }, "customProps":{ "x":100...

来源: laya_api 发布时间: 20170929

113. 如何给loadprogress传参数? [ 87%]

如何给loadprogress传参数? Laya.loader.load(myurl,Laya.Handler.create(this,this.loadComplete),Laya.Handler.create(this,this.loadprogress,["param"])); /** * 加载进度 */ private loadprogress(data:Array<any>):void{ console.log("加载进度: " + data);//加载进度: param }Laya.Handl...

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

114. 音频-播放演示 [ 87%]

...放音效"); Laya.SoundManager.playSound("res/sounds/btn.mp3", 1, new Laya.Handler(this, this.onComplete)); } // 播放音乐 onPlayMusic() { console.log("播放音乐"); Laya.SoundManager.playMusic("res/sounds/bgm.mp3", 1, new Laya.Handler(this, this.onComplete)); } onComplete() { console.log("播...

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

115. 泄漏问题,望排查 [ 87%]

...09-23 10:27 timer修改建议:1:clear和clearAll里面移除 this._map[handler.key] = null和handler.key = ""这两句 :2:runTimer里移除this._map[handler.key] = null 3:_recoverHandler里this._map[handler.key] = null这一句换成delete this._map[handler.key] Laya_Fred • 2021-...

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

116. laya.net.LoaderManager [ 87%]

...载的内容全部停止加载。LoaderManager  create(url:*, complete:Handler = null, progress:Handler = null, clas:Class = null, params:Array = null, priority:int = 1, cache:Boolean = true):* 根据clas类型创建一个未初始化资源的对象,随后进行异步加载,资源加载完成...

来源: laya_api 发布时间: 20170929

117. laya.ui.ISelect [ 86%]

...plementors Button ISelect 接口,实现对象的 selected 属性和 clickHandler 选择回调函数处理器。 Public Properties PropertyDefined By  clickHandler : Handler 对象的点击事件回掉函数处理器。 ISelect  selected : Boolean 一个布尔值,表示是否被选择。 ISe...

来源: laya_api 发布时间: 20170929

118. laya.ui.ISelect [ 86%]

...plementors Button ISelect 接口,实现对象的 selected 属性和 clickHandler 选择回调函数处理器。 Public Properties PropertyDefined By  clickHandler : Handler 对象的点击事件回掉函数处理器。 ISelect  selected : Boolean 一个布尔值,表示是否被选择。 ISe...

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

119. 资源版本问题 [ 86%]

...Version.FILENAME_VERSION; Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, beginLoad)) function beginLoad() { //加载LOADING资源 Laya.loader.load([{ url: "res/atlas/icon.atlas" }, { url: "res/atlas/human.atlas" }], Laya.Handler.create(this, progress, null, false), null, Laya....

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

120. LAYA js 1.7.12 Tween 使用时回调时 core报错 [ 86%]

...js包集成中,使用完全一样的代码,提示 Uncaught TypeError: handler.run is not a function at Tween.__proto.complete (laya.core.js:9423) 9423 :handler && handler.run(); 你们自己试试吧。。为啥要。&&run() 2017-11-11 添加评论 免费帖 --> 分享 微...

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