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

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

361. 头条小游戏二进制文件加载失败 [ 68%]

头条小游戏二进制文件加载失败 Laya.loader.load([         { url:"res/Bag.xml", type:Laya.Loader.BUFFER},         { url:"res/Bag_atlas0.png", type:Laya.Loader.IMAGE },         { url:"res/Bag_atlas0_1.png", type:Laya.Loader.IMAGE},                   ], Laya.Handler.c...

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

362. 在 tiledmap 插入一个精灵在上面 [ 68%]

...  this.init(); } init():void{   Laya.init(800, 700, Laya.WebGL);   Laya.loader.load("res/atlas/images.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); }   onLoaded(){   console.info("onLoaded");   this.tiledMap = new Laya.TiledMap();   this.tiledMap.createMap("desert.js...

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

363. native环境下动态载入脚本并执行 [ 68%]

...不能在native环境下手动载入若干脚本并执行。   ``` Laya.loader.load("http://118.17.23.1:9877/xxx.js", Handler.create(this, onLoad));//as3 ``` 2017-10-25 2 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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

364. Image 动态替换图片后变小了 [ 68%]

...小   var assets:Array = ;      assets.push({url:"map/157.jpg", type:Loader.IMAGE});      Laya.loader.load(assets, Handler.create(this, loadMapBGComplete));      function loadMapBGComplete():void{       var tx:Texture = Laya.loader.getRes("map/157.jpg");       this._test....

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

365. 怎么清理掉 Sprite3D 相关的缓存资源, 资源destroy后内存还下降、。 [ 68%]

...   }             super.destroy(true);             Laya.loader.clearRes(this._path);         } 画红框的区域还在内存里。。 https://ask.layabox.com/question/14807     。。 附件 : --> 2018-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

366. 粒子释放问题 [ 68%]

...子释放问题 (function() { var Stage            = Laya.Stage; var Loader           = Laya.Loader; var Particle2D       = Laya.Particle2D; var Browser          = Laya.Browser; var Handler          = Laya.Handler; var Stat             = Laya.Stat; var WebGL      ...

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

367. 图集动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 68%]

...n; import laya.display.Stage; import laya.maths.Rectangle; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class HelloLayabox { private const AniConfPath:String = "../../../../res/role.atlas"; private var roleAni:Animation; public functio...

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

368. 加载ls文件 completeHandler 有时不触发? [ 68%]

加载ls文件 completeHandler 有时不触发? Laya.loader.create(Consts.SubPackagePath+"/scenes/"+msceneinfo.unityName+".ls",Handler.create(this,this.completeHandler),null,Scene); 2018-07-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

369. 设置滤镜(JavaScript-LayaAir基础篇(JS)-位图) [ 68%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { normalizeApe(); makeRedApe(); grayingApe(); } function normalizeApe() { var originalApe = createApe(); apeTexture = Laya.loader.getRes(ApePath); orig...

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

370. 异步加载一个UI对象时的问题 [ 68%]

...createChildren(); let assets = [ { url: "res/atlas/ui/shared.atlas", type: Loader.ATLAS }, { url: "res/atlas/ui/myview.atlas", type: Loader.ATLAS }, { url: "view/MyView.json", type: Loader.JSON }, ] Laya.loader.load(assets, Handler.create(this, this.onLoaded)); } private onLoaded():void { this.creat...

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