大约有 217 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0046 秒)
Laya_社区(178) Laya2.0_文档(24) Laya3.0_文档(5) Laya3.0_api(3) Laya2.0_示例(2) Laya_示例(2) Laya2.0_api(2) laya_api(1)
...n --------------------------------close----------------------------------- loader http://localhost:18090/_cache_ ... 65.ls (2) [5, PrefabImpl] loader http://localhost:18090/resources/Box.lh (2) [5, PrefabImpl] loader http://localhost:18090/resources/chest_bg.png (4) [6, Texture, 7, Texture2D] loader...
来源: Laya_社区 发布时间: 20240109
...的加载进度呢 我在IDE中创建了整个游戏界面,然后通过loader去加载界面的配置文件:Laya.loader.load(['res/atlas/game.json'],Laya.Handler.create(this,Slot.onSourcesLoaded), Laya.Handler.create(this,Slot.onSourcesLoading,null,false),Laya.Loader.ATLAS);这样写似乎监听...
来源: Laya_社区 发布时间: 20170225
...载纹理资源,如果要使用纹理压缩格式,则需要使用`Laya.loader.load()`来加载纹理资源。 示例代码如下所示: ```typescript //检测安卓平台 if (Laya.Browser.onAndroid) { //注意这里的加载 Laya.loader.load("res/layabox.ktx", Laya.Handler.create(null, functio...
来源: Laya2.0_文档 发布时间: 20210714
...动画进行单独处理?还是不允许把动画放进预制体? Laya.loader.load("prefab/gk2v1.json",Laya.Handler.create(this,function(pref:Laya.Prefab){ var gkpref:Laya.Prefab = new Laya.Prefab(); gkpref.json = pref; var OBJ = Laya.Pool.getItemByCreateFun("gk2v1",gkpref.create,gkpref); this.S...
来源: Laya_社区 发布时间: 20201022
...后缀格式造成的,而默认例子里面加载的是json格式的: Laya.loader.load("res/atlas/comp.json", Handler.create(this, onAssetLoaded), null, Loader.ATLAS); 所有导致了图集位置错乱,麻烦技术修下这个bug. 建议ui编辑器默认就导出成json格式大图~~ 2017-11-1...
来源: Laya_社区 发布时间: 20171110
...么laya里是怎么一起加载这个模块的资源的。 不能用Laya.loader.load([a.atlas, b.atlas,...,....])这样加载吧,那这样管理不是很麻烦 如果除了技能模块,其他还有任务模块,人物模块,活动模块等等 有没有什么便利方法???各位 ...
来源: Laya_社区 发布时间: 20190912
...自: //主域if(Laya.Browser.onMiniGame){//加载一个json和图集Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){//加载完成//使用接口将图集透传到子域Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口...
来源: Laya_社区 发布时间: 20190419
图集动画必须要有这一段代码吗 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); 2017-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来...
来源: Laya_社区 发布时间: 20170925
...; //设置stage颜色s Laya.stage.bgColor = "#ffffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ var _start = new start(); Laya.stage.addChild(_start); } })(); var start = (function(_super){ function st...
来源: Laya_社区 发布时间: 20181220
... import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; import HTMLIframeElement = Laya.HTMLIframeElement; class TestUI extends ui.htmlUI { constructor() { super(); var iHtml: HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(iHtml); iHtml....
来源: Laya_社区 发布时间: 20171011