大约有 260 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)
Laya_社区(237) Laya2.0_文档(13) Laya3.0_文档(4) Laya2.0_api(3) laya_api(1) Laya3.0_api(1) Laya2.0_示例(1)
...用 Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoaded方法中无法获取采用相对布...
来源: Laya_社区 发布时间: 20170720
...01; private socket:Laya.Socket = null; private callbacks:any = {}; private handlers:any = {}; // Map from request id to route private routeMap = {}; private heartbeatInterval:number = 0; private heartbeatTimeout:number = 0; private nextHeartbeatTimeout:number = 0; private gapThreshold:number = 100; ...
来源: Laya_社区 发布时间: 20180119
...量加载json文件,然后等这些文件统一加载完后回调 Laya.Handler.create 加载图片回调参数问题 Dialog限制拖动区域有什么方法 const 用法 能否恢复Animation.getGraphicBounds在1.6时的用法 问题状态 最新活动: 2017-08-14 14:02 浏览: 942 关注: 2 人
来源: Laya_社区 发布时间: 20170814
..._base.png",type:Laya.Loader.IMAGE}, ]; Laya.loader.load(resArray,Laya.Handler.create(this,initUI)); 单图就是so_main_base.png,死活就加载不出来, 报错 [warn]Retry to load: UI/so_main_base.png [error]Failed to load: UI/so_main_base.png 一开始我怀疑尺寸太大,就换了一...
来源: Laya_社区 发布时间: 20180626
...aya.loader.load([{ url: "res/ui/LoadProgress.fui", type: Loader.BUFFER }], Handler.create(this, this.loadProgress)) this.token = token; } public loadProgress() { this.progressUI = UIBase.create(LoadProgress.UI_LoadProgress, "LoadProgress", LoadProgress.LoadProgressBinder.bindAll) this.progressUI.UIM...
来源: Laya_社区 发布时间: 20171204
...帧 package { import laya.webgl.WebGL; import laya.utils.Handler; import laya.display.Sprite; import laya.ui.Image; public class LayaSample { public function LayaSample() { //初始化引擎 ...
来源: Laya_社区 发布时间: 20190110
...pLoaded() this.tMap.createMap("res/TiledMap/orthogonal.json",viewRect,Laya.Handler.create(this,onMapLoaded)); function onMapLoaded(){ //将原地图放大2倍 this.tMap.scale = 2; } ``` 运行效果如图8所示。  (图8) #### 2.2.2 设置地图缩放的中心点 很明显,图8...
来源: Laya2.0_文档 发布时间: 20210715
...音效"); SoundManager.playSound("../../../../res/sounds/btn.mp3", 1, new Handler(this, onComplete)); 2018-10-21 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 binhuawei 相关问题 IOS系统内嵌H5游戏,退到后台,等几秒返...
来源: Laya_社区 发布时间: 20181021
...赏了。 private static onRequestComplete(hr:Laya.HttpRequest, call:Laya.Handler):void { call.runWith(hr.data); Http._requests.push(hr); } 2019-06-10 0 1 分享 微博 QZONE 微信 1560063291用户 赞同来自: 已解决,联系我 xyz 2019-06-10 0 0 分享 微博 QZONE 微信 为什么被折叠?...
来源: Laya_社区 发布时间: 20190609
...ideContainer.addChild(maskButton); maskButton.clickHandler = new Laya.Handler(this, () => { if (button) { if (button instanceof Laya.Button) { ...
来源: Laya_社区 发布时间: 20200119