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

大约有 137 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0046 秒)

111. Unity3d导出的资源,用layadcc,只有.lh文件能用缓存,.lh依赖的资源始终download。 [ 57%]

...er/tower_111002/tower_111002.lh)   2、加载这个资源 (使用Laya.loader.create,参阅附件工程)   3、使用layadcc (反正也没人回答,附件暂时删除了)   4、发现tower_111002.lh 这个资源显示  found the file in the package   5、发现tower_111002.lh 这...

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

112. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 57%]

...function():void{ beginLoad(); }); private function beginLoad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); }  以上是子域项目...

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

113. Laya 最新IDE发布的版本管理有问题? [ 56%]

...加了一个hash后缀。 载入UI的时候都是正常的,但是使用loader.create载入场景的时候,场景里面的lmat文件没有按照hash名去加载,还是加载的原来的名字。我看version文件里面记录了对应lmat文件更名后的情况啊,请问是否是BUG? 2018-...

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

114. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 56%]

...lor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(skin, Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个Button实例 var btn:Button = new Button(skin); //将Button添加到舞台 Laya.stage.addChild(btn); //设置Button相关...

来源: Laya2.0_文档 发布时间: 20210715

115. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 55%]

...ya.ResourceVersion.FILENAME_VERSION);  function beginLoad(){     Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(null, onLoaded)); }*/  function updateItem(cell, index) { cell.setImg(cell.dataSource); }  function onLoaded(): void {      var rankList = new Laya.List();    ...

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

116. 多线程Worker · LayaAir3.0文档 · LAYABOX [ 55%]

....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("../atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():v...

来源: Laya3.0_文档 发布时间: 20240528

117. vivo小游戏 · LayaAir3.0文档 · LAYABOX [ 54%]

...此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) La...

来源: Laya3.0_文档 发布时间: 20240926

118. CheckBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 53%]

...Color = "#ffffff"; //加载图集成功后,执行onLoad回调方法 Laya.loader.load([skin1,skin2], Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个CheckBox实例cb1 var cb1:CheckBox = new CheckBox(skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //...

来源: Laya2.0_文档 发布时间: 20210714

119. 多线程worker(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 53%]

....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实...

来源: Laya2.0_文档 发布时间: 20210715

120. 多线程worker(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 53%]

....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():...

来源: Laya2.0_文档 发布时间: 20210715