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

大约有 2,984 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0068 秒)

341. Laya.loader Progress回调形同虚设 [ 84%]

Laya.loader Progress回调形同虚设 private function beginLoad():void { //加载引擎需要的资源 Laya.loader.load([ "res/1.png", "res/2.png", "res/3.png", "res/4.png", "res/5.png", "res/6.png", "res/7.png" ], Handler.create(this, onLoaded),Handler.create(this, onProgress)); //Laya.loader.lo...

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

342. VR场景-VR地球 [ 84%]

...olor = new Laya.Vector3(1, 1, 1); var earth = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/earth/EarthPlanet.lh")); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox3/skyCube.ltc"); vrCamera.sky = skyBox; var rotatio...

来源: Laya_示例 发布时间: 20251209

343. layabox如何做资源加密压缩? [ 84%]

...频等。 如果要做资源加密压缩,是否有方便接口? Laya.loader.load带上资源类型,似乎已经直接进入资源逻辑了。 如果加载的是加密资源,如何在loader和资源逻辑之间优雅得插入一个解密逻辑呢? 2017-03-20 添加评论 免费帖 --> 分...

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

344. 微信小游戏的4M本地包与动态资源加载(TypeScript-小游戏适配文档-微信小游戏) [ 84%]

...径,比如示例中引用的就是本地路径, ```json Laya.Texture2D.load("res/layabox.png"); ``` 如果项目的目录中,全部大小加起来不超过4M的话,只要能找到本地的资源,怎么写也没问题。 但是, 微信小游戏的本地包有4M的限制,一旦超过这...

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

345. LayaNative中加载自己缓存的资源 [ 84%]

...片,所以把图片放到了服务器上,但是在app中,使用Laya.loader.load 加载的资源它并不会缓存到本地,每次都要重新下载,有没有什么api是可以手动缓存到本地的?   当前我自己写了一个下载方法,虽然文件保存成功了,但是用Lay...

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

346. 无法正常运行官网中的示例代码 [ 84%]

...:http://ldc.layabox.com/index.p ... 3D622 控制台报错: Failed to load resource: net::ERR_FILE_NOT_FOUND [warn]Retry to load: D:/demo/bin/res/atlas/comp.json Failed to load resource: net::ERR_FILE_NOT_FOUND [error]Failed to load: D:/demo/bin/res/atlas/comp.json 2017-03-28 添加评论 免费...

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

347. 1.7.11 Sprite.loadimage [ 83%]

LayaAir引擎 1.7.11 Sprite.loadimage 以下测试使用的是layaide 1.7.11 类库是也1.7.11  测试谷歌 浏览器版本 62.0.3202.94(正式版本) (64 位)  应该是目前最新的了 一 关于Sprite 的 width height 1. sp.loadImage('xxx.png',0,0,0,0,callback)调用方式 能否...

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

348. 加载场景成功时,并不是场景上所有资源都已加载完 [ 83%]

...骨骼动画   编译出来的场景文件,SceneA.json文件里     "loadList": [背景图]。     这里面并没有骨骼动画.sk和.png 当Laya.Scene.load  succcess时,发现只加载了 “背景图”   如果又设置了:Laya.URL.basePath = 'https://xxxxx' 这就有点尴尬了...

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

349. 预加载图集文集在小游戏端导致内存过高 [ 83%]

...y: Array<any> = [ { url: hyip+"res/atlas/comp/01_shouye.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/02_zhujiemian.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/30_loading.json", type: Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded1...

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

350. 为什么mc取得的时候有时候mc.getBounds().width;有值有时候是0 [ 83%]

...mc取得的时候有时候mc.getBounds().width;有值有时候是0 Event.LOADED事件后输出宽度有时候还是0有时候却有值。这个是为什么呢?已经是在loaded事件以后的输出了。 附件 : --> 2016-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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