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

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

1221. UI界面加载有哪些回调方法可用 [ 51%]

UI界面加载有哪些回调方法可用 Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoad...

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

1222. 【vivo】2d图集加载不上 [ 51%]

【vivo】2d图集加载不上 Laya.loader.load(url,Handler.create(this,onLoadComplete),null,Loader.ATLAS); 用Loader.ATLAS图集类型加载失败 附件 : --> myLaya.zip 2019-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

1223. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 51%]

...at.show(); console.log("debuginfo LayaAir3D constructer start loadres url:", this._sceneURl); Laya.loader.create([{url:this._sceneURl, clas:MyScene}], Laya.Handler.create(this, this.loadComplete)); } private loadComplete():void { console.log("debuginfo LayaAir3D constructer loadres co...

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

1224. 高低mesh地形,实用后解析会变慢 [ 51%]

...改为png,就能获得所要的高度图。 3,高度图的预加载 {url: "res/heightMap.png", clas:Texture2D, priority:1, params:[true]} 4,高度图的使用 5,最后记得把该模型隐藏掉 meshSprite3D.active = false; 158*****155 • 2017-05-02 20:52 @183*****755:生成png图...

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

1225. 微信小游戏怎么加载本地的配置文件 [ 51%]

...配置文件?在laya是可以 public initConfig(){ this.configAsset=[ {url:"res/config/playerCard.json",type:laya.net.Loader.TEXT} ]; Laya.loader.load(this.configAsset,Handler.create(this,this.loadConfigCallBack)) } public loadConfigCallBack(str:boolean){ if(str){ var config; config=laya.net.Loade...

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

1226. 原生app缓存能不能不关联热更地址 [ 51%]

....jar文件里找到index.js, 里面有window.appcache = new AppCache(baseUrl); 具体我就不太清楚了,你想办法从baseUrl入手 2020-04-21 0 0 分享 微博 QZONE 微信 闲云&野鹤 赞同来自: 每个渠道对应一个目录,打包的时候把游戏的URL改成对应的目录...

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

1227. 请问下loader如何强制加载一个文件,避免浏览器的缓存 [ 51%]

...自: ohkei 、Zzz18815519  文件名后面加个版本号试试,比如url:"bgm.mp3?v=1.1" 2017-07-26 2 0 分享 微博 QZONE 微信 cuixueying 赞同来自:   2017-05-02 0 2 分享 微博 QZONE 微信 Funkyfun 赞同来自: 这样写的,发现iOS 微信浏览器下资源图片还是会缓存...

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

1228. laya.d3.core.BaseCamera [ 51%]

...Camera transform : Transform3D[read-only] 获取精灵变换。 Sprite3D url : String[read-only] 获取资源的URL地址。 Sprite3D  useOcclusionCulling : Boolean 渲染时是否用遮挡剔除。 BaseCameraPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefin...

来源: Laya2.0_api 发布时间: 20190513

1229. 求助高手请进,关于场景导入的问题~ [ 51%]

...容相关的链接 提交 3 个回复 ltmking 赞同来自: 我试过this.url = Laya.loader.getRes("LayaScene_01/loveScene.ls");不管用 2017-08-25 0 0 分享 微博 QZONE 微信 ltmking 赞同来自: 急~~~~有没有人知道的~~~~在线等!!! 2017-08-25 0 0 分享 微博 QZONE 微信 ltmk...

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

1230. [LayaAir3]LayaAir3打android平台运行有Load script error 错误 [ 51%]

...调 Load script error 错误  但是远端index.js 内容是没有错误 url也是对的window.onLayaInitError=function(e) { console.log("onLayaInitError error=" + e); alert("加载游戏失败,可能由于您的网络不稳定,请退出重进"); } 附件 : --> 2024-04-01 添加评论 免费帖...

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