大约有 418 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0057 秒)
...览器直接自动刷新页面 如题,利用Laya.Sprite3D.load或者Laya.loader.create加载资源,资源是.lh文件(人物模型动画骨骼贴图等),每个角色lh文件及其包含的关联资源大约3M左右,代码中加载15个不同的角色资源,在android手机上没有问...
来源: Laya_社区 发布时间: 20180420
... import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; class TestUI extends ui.test.TestPageUI { constructor() { super(); var btn1=new ui.test.view_btnUI(); var btn1_btn:laya.ui.Button=btn1.getChildByName("btn") as laya.ui.Button; //问题一: 这里...
来源: Laya_社区 发布时间: 20170725
...个是我在unity导出一个文件,然后layabox中加载场景。 Laya.loader.create(this.strScene, Laya.Handler.create(this, this.onLoadScene)); private onLoadScene() { var scene: Laya.Scene = Laya.Scene.load(this.strScene); if (scene == null) { return; } this.mScene = scene; 大致的流程...
来源: Laya_社区 发布时间: 20180418
3D开启多线程报错 开启多线程后 Laya.WorkerLoader.workerPath="libs/worker.js"; Laya.WorkerLoader.enable=true; 加载导出的3D模型 Laya.Sprite3D.load("res/assets/LayaScene_guanyu/TestScene.lh"); 报错:laya.d3.js:37225 Uncaught TypeError: Failed to execute 'texImage2D' on 'Web...
来源: Laya_社区 发布时间: 20190227
... 引擎版本1.7.18beta 我是用这样的方式加载的图集 Laya.loader.load([{url: "res/atlas/xxx1.json", type: Loader.ATLAS}, {url: "res/atlas/xxx2.json", type: Loader.ATLAS}, {url: "res/atlas/xxx3.json", type: Loader.ATLAS}], Handler.create(... 并且在...
来源: Laya_社区 发布时间: 20180505
...ang + "/shz_nav.png"。。。。。。。】 用这个进行预加载 Laya.loader.load(images, null, Laya.Handler.create(this, onImagesProgress, null, false), Laya.Loader.IMAGE); 但是每次进入都会重新慢慢在加载一次 声音也是一样 2017-02-16 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20170216
3D开启多线程报错 开启多线程后 Laya.WorkerLoader.workerPath="libs/worker.js"; Laya.WorkerLoader.enable=true; 加载导出的3D模型 Laya.Sprite3D.load("res/assets/LayaScene_guanyu/TestScene.lh"); 报错:laya.d3.js:37225 Uncaught TypeError: Failed to execute 'texImage2D' on 'Web...
来源: Laya_社区 发布时间: 20190323
...en()的时候,图集没办法恢复。 问题定位: As3版本引擎,Loader类第370行,这句代码 var url:string = URL.formatURL(directory + name)错误,然后第375行tTexture.url = url,texture缓存了错误的资源地址,导致texture恢复资源的时候Laya.loader.load()这个...
来源: Laya_社区 发布时间: 20190109
...ge { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.ui.Box; import laya.ui.CheckBox; import laya.ui.Clip; import laya.utils.Handler; import ui.test.ListPageUI; public class LayaUISample { private var listP:ListPageUI;//UI面板 private var arr:Array;//list...
来源: Laya_社区 发布时间: 20170313
...en()的时候,图集没办法恢复。 问题定位: As3版本引擎,Loader类第370行,这句代码 var url:string = URL.formatURL(directory + name)错误,然后第375行tTexture.url = url,texture缓存了错误的资源地址,导致texture恢复资源的时候Laya.loader.load()这个...
来源: Laya_社区 发布时间: 20190109