大约有 1,292 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0058 秒)
Laya_社区(1020) Laya2.0_文档(79) Laya3.0_文档(55) Laya_示例(51) Laya3.0_api(44) Laya2.0_示例(39) laya_api(2) Laya2.0_api(2)
...存里,如何画在画布上 atlas目录下.json文件与.atlas的区别 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 问题状态 最新活动: 2018-01-18 10:32 浏览: 914 关注: 2 人
来源: Laya_社区 发布时间: 20180118
...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
【vivo】2d图集加载不上 Laya.loader.load(url,Handler.create(this,onLoadComplete),null,Loader.ATLAS); 用Loader.ATLAS图集类型加载失败 附件 : --> myLaya.zip 2019-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20191106
...实现方式: 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
粒子图片错误 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
...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
...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
资源加载,提示不识别路径 //加载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
...几个文件会超过秒级,有时会20几秒,用的加载方式是 Laya.loader.load( url,Handler.create(this,comFun),null,Loader.IMAGE,0); 这个等待时间有没有大牛搞过啊 附件 : --> 2018-07-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20180721
...问题有两个方案可以解决: 第一个就是在destory的时候用Loader.clearRes清理下资源; 第二个就是更新的最新版本,默认通过Sprite3D的load加载的资源不缓存,在destory的时候就不会存在你描述的这个问题! 2016-12-17 0 0 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20161217