大约有 220 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0048 秒)
Laya_社区(150) Laya3.0_api(20) Laya2.0_文档(19) Laya3.0_文档(14) Laya2.0_示例(9) Laya_示例(6) laya_api(1) Laya2.0_api(1)
...处理Font类型的资源时,只修改加载为Image类型的资源但其Loader的_type仍是font,就一直存在循环。这个问题会在下个版本进行修复,先提供给您一个暂时的解决方案,在对Font类型处理时,手动修改下Loader的type,修改如下图: 202...
来源: Laya_社区 发布时间: 20211216
...nction text_load_width_height() { Laya.init(600,400); Laya.loader.load(["../laya/assets/comp/image.png","../laya/assets/comp/vscroll.png"],Laya.Handler.create(this,onAssetLoad)); } function onAssetLoad() { older = new Laya.Sprite(); older.loadImage("../laya/a...
来源: Laya_社区 发布时间: 20170118
... 【BUG备忘录】关于Tween动画无法正常作用问题-解决办法 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 关于laya无法缓存非图片、声音文件bug 2.0iDE bug laya2.0ide 显示bug image loadimage 加载网络图片B...
来源: Laya_社区 发布时间: 20180328
...his.h1 = Laya.Handler.create(this, this.loadPicComplete, null, true); Laya.loader.load("res/img/1.png", this.h1); } private loadPicComplete(): void { Laya.timer.once(2000, this, this.actT); } private actT(): void { this.h2 = Laya.Handler.create(this, this.loadPicComplete, null, true); console.log(th...
来源: Laya_社区 发布时间: 20171221
... 微博 QZONE 微信 hjy1234123 赞同来自: json文件没加载到 Laya.loader.load([{url: "res/atlas/**.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); 像这样加载一下,再打开界面 2017-02-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...
来源: Laya_社区 发布时间: 20170208
...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textInput:TextInput = new TextInput("这是一个TextInput实例。");//创建一个 ...
来源: Laya3.0_api 发布时间: 20231115
...错误 关于Laya实现Matter.js官方案例凹多边形的问题 请问下loader如何强制加载一个文件,避免浏览器的缓存 Laya拖尾怎么停止或清除,比如要瞬移角色的时候停止。伤脑壳~~!! laya开发的3d跑酷 问题状态 最新活动: 2019-09-27 10:39 浏...
来源: Laya_社区 发布时间: 20190927
...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textArea:TextArea = new TextArea("这个一个TextArea实例。");//创建一个 Text...
来源: Laya3.0_api 发布时间: 20231115
...{ url: Laya.ResourceVersion.manifest["res/atlas/loading.json"], type: Laya.Loader.ATLAS }, { url: Laya.ResourceVersion.manifest[utils.resourcesCenter.ResourcesPathStr.PROTO_FILE_PATH], type: Laya.Loader.TEXT }, ]; 手动修改了JS代码!! 可以成功...
来源: Laya_社区 发布时间: 20180421
...xml文件,在layaAir下预加载该xml文件,在加载完成后通过Loader.getRes("xxx.xml")获取,该类型为XMLDom类型,直接针对XMLDom的实例进行逻辑操作即可
来源: Laya_社区 发布时间: 20161201