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

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

11. Laya.loader.load 加载场景报错 [ 92%]

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

12. MovieClip 的 bug [ 92%]

...,临时你也可以通过修改代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find")...

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

13. laya接入fairyGUI的时候资源加载方式? [ 92%]

laya接入fairyGUI的时候资源加载方式?     Laya.loader.load([{ url: "res/Basics_atlas0.png", type: laya.net.Loader.IMAGE },     { url: "res/Basics.fui", type: laya.net.Loader.BUFFER }, { url: "res/MainMenu_atlas0.png", type: laya.net.Loader.IMAGE },     { url: "res/MainMenu.fu...

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

14. 启用版本管理后,Laya.loader.load加载在微信web开发者工具触发不了回调 [ 91%]

启用版本管理后,Laya.loader.load加载在微信web开发者工具触发不了回调 启用版本管理后,文件都带了hash, var resArray = [ {url: "res/atlas/common.atlas", type: Laya.Loader.ATLAS}, {url: "hall/1_login/login_bg.png", type: Laya.Loader.IMAGE}, {url: "hall/1_login/Bott...

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

15. Laya.loader.load加载位图字体 [ 91%]

Laya.loader.load加载位图字体 在laya.core.js16251行 __proto.onLoaded   else if (type==="font"){//这里,启用webgl后,HTMLImage.create返回的是Texture2D,不是HTMLImage,data上没有_source这个属性 //导致重复加载图片,走不到else里面,if的判断是否应该改为 ...

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

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

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

17. 加载的时候动画会卡 [ 90%]

...      var imgArr = ;         imgArr.push({url:"cont/cpf1.jpg",type:Loader.IMAGE});         imgArr.push({url:"cont/cpr1.jpg",type:Loader.IMAGE});         imgArr.push({url:"cont/cps1.jpg",type:Loader.IMAGE});         imgArr.push({url:"cont/cpt1.jpg",type:Loader.IMAGE});        ...

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

18. Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug [ 89%]

Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug demo: class NewTest { public static url: string = "333.json"; private loadedMap; constructor() { this.loadedMap = Laya.Loader["loadedMap"];  Laya.init(720, 1280, Laya.WebGL); Laya.Stat.show...

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

19. 用Loader加载完atlas,然后使用animation播放问题 [ 89%]

Loader加载完atlas,然后使用animation播放问题 this._load = new Laya.Loader() this._load.on(Laya.Event.ERROR, this, this.onError); this._load.on(Laya.Event.COMPLETE, this, this.loadComplete); this._load.load(this._data.url, Laya.Loader.ATLAS, true); 加载完成后 this._ani = new Animat...

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

20. 高级应用-寻路导航 [ 87%]

...AStarMap.png", clas: Laya.Texture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { //初始化3D场景 this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/TerrainScene/XunLongShi.ls")); //删...

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