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

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

611. movieclip destroy 后重新加载失败 [ 68%]

...失败 ==================test================ >>getMovieClipAtlas: res/swf/bomb.swf true >>onLoadedHandler1: Handler {once: true, _id: 6, caller: LayaSample, args: undefined} >>bomb: MovieClips {frames: 0, callback: null, _isRemove: false, _group: null, _start: 384…} Texture {off...

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

612. Tiled Map 为啥始终显示在最上面,求解 [ 68%]

...; var viewRect:Laya.Rectangle = new Laya.Rectangle(); this.tMap.createMap("res/TiledMap/orthogonal-test-movelayer.json",viewRect,Laya.Handler.create(this,this.onMapLoaded)); this.tMap.scale = 1;   var ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.loadImage("res/lhg.png"); ape.pos(0, 0);  ...

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

613. 淘宝创意互动分包指南(TypeScript-小游戏适配文档-淘宝创意互动) [ 68%]

...加载分包和资源 ``` my.loadSubPackage({ name: 'packageA', success: (res) => { this.setData({ subpackageReady:true }) console.log("download success") }, fail: function (res) { console.log(res) console.log("download fail") } }) ``` ## 四、分包构建 完成上述分包配置后,开发者需...

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

614. 骨骼动画-换装 [ 68%]

...un() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes2/goblins.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(mAniPath); } onError() { trace("error"); } parse...

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

615. 2.0版本,Particle2D is not a constructor [ 68%]

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

616. 提示资源找不到但是也能显示! [ 68%]

...到但是也能显示! blackMan.json 是一个小黑人  ani not found: res/atlas/default/blackMan.json     public static readonly BLACK_MAN = "res/atlas/default/blackMan.json";    this.aniTemp.loadAtlas(ResourcesManager.BLACK_MAN, null, ResourcesManager.BLACK_MAN);   json 文件是   {"fra...

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

617. 用LayaAir引擎解析Tiled Map地图(ActionScript-2D进阶篇(AS3)-扩展模块) [ 68%]

...击`保存`,存到**项目目录内**(本例为`项目根目录\bin\h5\res\TiledMap\`),如图3所示。 ![图3](img/3.png) (图3) ### 1.3 修改图集路径和复制Tiled资源 ##### 只是存为json文件还不够,我们还要更改image绝对路径为相对路径。 我们通过IDE,打...

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

618. 通过canvas的缩放来实现清晰度是什么意思呢? [ 68%]

...                 material.diffuseTexture = Texture2D.load("res/test4.png");   sphere.meshRender.material = material;   test4.png是一张1024*512的图,我想提高贴图的清晰度 有人说可以通canvas缩放来实现 具体怎么做? 不用Texture2D.load("res/test4.png")...

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

619. 图片放在assets根目录下无法被引用成功,必须放到一个文件夹中 [ 68%]

...ng • 2017-03-20 10:51 恩恩 肯定对这个图集做了预加载了 var resArray = [ {url:"res/atlas/comp.json", type: Laya.Loader.ATLAS}, {url:"res/atlas/assets.json", type: Laya.Loader.ATLAS} ]; Laya.loader.load(resArray, Laya.Handler.create(null,LoadResComplete)); cuixueyin...

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

620. Resources already exist 加载动画资源时候,遇到这个提示 [ 68%]

Resources already exist 加载动画资源时候,遇到这个提示 今天遇到这个输出提示 : Resources already exist 具体情况如下: 1.创建一个animation对象,加载一个序列帧图集动画, 动画地址是: P:/H5-WorkSpace/LayaTest/bin/res/AAAA/stand/0.atlas (这张atlas是通...

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