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

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

281. 材质-BlinnPhong-法线贴图 [ 71%]

...ctor3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); Laya.loader.create("../../res/threeDimen/staticModel/lizardCal/lizardCaclute.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var monster1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticMo...

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

282. ani如何实现预加载呢? [ 71%]

...第一次没缓存的情况下 动画只会播放一半.  附代码: Laya.loader.load("res/atlas/res.json", Laya.Handler.create(this, onLoaded), Laya.Handler.create(this, onLoading), Laya.Loader.ATLAS); 我是在onLoaded里面用游戏资源的.... 2017-07-01 添加评论 免费帖 --> 分享 微...

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

283. 解析JSON格式的数据 [ 71%]

...的 fbxtool 工具文件你们有吗? 我不要插件,要可执行的exe Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 天空盒 cubemap ltc 格式? layabox能用上webp图片格式么? 小游戏 解析xml 问题 问题状态 最...

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

284. 加载TiledMap 不显示 [ 71%]

...{     //  this.tiledMap = new TiledMap();     //  // Laya.loader.create(["res/tiledMap/t1.json", "res/tiledMap/2201001.png"], Laya.Handler.create(this, () =>     //  // {     //      this.tiledMap.createMap("res/tiledMap/t1.json", new Rectangle(0, 0, Laya....

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

285. Android小游戏加载不打包的图会卡资源 [ 71%]

...资源 this.assets.push({ url: "lobby/zhujiemian_ditiao.png", type: Laya.Loader.IMAGE });   Laya.loader.load(this.assets, Laya.Handler.create(this, this.onAssetsLoaded) , Laya.Handler.create(this, this.progress, [], false));   在加载的时候ios的微信小游戏是没有问题的,但是到...

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

286. UI-Tab [ 71%]

...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(skins, Handler.create(this, this.onSkinLoaded)); } onSkinLoaded() { let tabA = this.createTab(skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; let tabB =this. createTab(skins[1]); tabB.p...

来源: Laya2.0_示例 发布时间: 20240930

287. 缓存,数据库,PlayerPrefs [ 71%]

...动画失败 请教下微信小游戏的内存和数据缓存? 请问下loader如何强制加载一个文件,避免浏览器的缓存 微信小游戏只缓存图片和声音 调用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 关...

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

288. 资源加载后的 回调 [ 71%]

...的语句加载资源,每次加载完成后回调loadselectanimation Laya.loader.load(picurl,Handler.create(this, this.loadselectanimation,arrr),null,Loader.ATLAS); 现在的问题是,同一个资源第二次加载的时候,就不执行回调函数了. 是不是第一次加载以后有缓存了,第...

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

289. 模型资源释放 [ 71%]

...放资源**/ private function assetsDispose(assetsUrl:String):void { Laya.loader.clearRes(assetsUrl); //加载盘释放的资源配置表 Laya.loader.load([{url:assetsUrl,type:Loader.JSON}], Handler.create(this,onAssetsOK,[assetsUrl])); } /**加载资源释放表完成后**/ private function onAsset...

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

290. Sprite3D的克隆(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 71%]

...p=Sprite3D&name=Sprite3DClone)) ```typescript { ...... //加载模型 Laya.loader.create("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/three...

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