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

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

281. Laya.loader.load 加载场景报错 [ 71%]

Laya.loader.load 加载场景报错 Laya.loader.load( 模型url, Laya.Handler.create(this, function(){ this.scene = Laya.loader.getRes(模型url); Laya.stage.addChild(this.scene); }),null, null, 1, true, "scene1"); 执行后,浏览器报 : laya.core.js:13290 Uncaught TypeError: node._setParent ...

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

282. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 71%]

...了,地址当然不正确了,导致无法下载.代码大致如下: Laya.loader.load('player/player.json',Laya.Handler.create(this, this.onLoaded),null); ----onComplate: Laya.Animation.createFrames(['player-left.png'], "walk-left"); 2016-06-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

283. UI-Tab [ 71%]

...WALL; Laya.stage.bgColor = "#232628"; Laya.stage.bgColor = "#3d3d3d"; Laya.loader.load(skins, Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { var tabA = createTab(skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; var tabB = createTab(skins[1]); tabB.pos...

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

284. 材质-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_示例 发布时间: 20260106

285. 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

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

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

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

287. 加载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

288. 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

289. 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_示例 发布时间: 20260106

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

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

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