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

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

621. 如何读取json或者js中的内容 [ 66%]

...存里,如何画在画布上 atlas目录下.json文件与.atlas的区别 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 问题状态 最新活动: 2018-01-18 10:32 浏览: 914 关注: 2 人

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

622. 游戏系怎么把一些共用的功能独立出来 [ 66%]

...JS 如:  var atlas:Object[] = [{ url: "res/atlas/choujiang.js", type: Loader.TEXT },                             { url: "res/atlas/choujiang.json", type: Loader.ATLAS },         ];         Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this...

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

623. 【vivo】2d图集加载不上 [ 66%]

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

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

624. 图片显示好奇怪 [ 65%]

...实现方式: public function LayaAirDemo() { Laya.init(800,800); Laya.loader.load('logo.png',Handler.create(this,onLoaded)); } private function onLoaded():void { var texture:Texture=Loader.getRes('logo.png'); var sp:Sprite=new Sprite(); sp.graphics.clear();//把上次的绘制清除 sp.graphics.d...

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

625. 粒子图片错误 [ 65%]

粒子图片错误 Laya.loader.load("res/yan.part", Laya.Handler.create(this, this.onAssetsLoaded), null, Laya.Loader.JSON); var yan = new Laya.Particle2D(settings); yan.emitter.start(); yan.play(); this.particlesPos.addChild(yan);   编辑器里面设置是对的 但是在网页上运行,图片...

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

626. 2.0版本,Particle2D is not a constructor [ 65%]

...rt default class RunMain extends Laya.Sprite{ constructor(){ super(); Laya.loader.load([{url:"res/213.part",type:Laya.Loader.JSON}],Laya.Handler.create(this,this.onAssetsLoaded)); } onAssetsLoaded(){ let pg = Laya.loader.getRes("res/213.part"); let pd = new Laya.Particle2D(pg); } }213.part是设计...

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

627. 照相机-3D空间转2D空间 [ 65%]

...lse); var directionLight = scene.addChild(new Laya.DirectionLight()); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMon...

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

628. 资源加载,提示不识别路径 [ 65%]

资源加载,提示不识别路径 //加载3D资源 Laya.loader.create([{url:"LayaScene_Demo/Demo.ls","type":Laya.Scene}, {url:"LayaScene_Scene/Scene.ls","type":Laya.Scene}, {url:"LayaScene_People/People.lh","type":Laya.Sprite3D}], Laya.Handler.create(this,this.on3DComplete)); 报错提示 messag...

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

629. layabox 网络加载异常慢 [ 65%]

...几个文件会超过秒级,有时会20几秒,用的加载方式是 Laya.loader.load( url,Handler.create(this,comFun),null,Loader.IMAGE,0); 这个等待时间有没有大牛搞过啊   附件 : --> 2018-07-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

630. 3d模型释放后重新加载异常 [ 65%]

...问题有两个方案可以解决: 第一个就是在destory的时候用Loader.clearRes清理下资源; 第二个就是更新的最新版本,默认通过Sprite3D的load加载的资源不缓存,在destory的时候就不会存在你描述的这个问题! 2016-12-17 0 0 分享 微博 QZONE ...

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