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

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

351. 加载一个txt文件 getRes出来类型为string 能转换成数组吗 [ 65%]

...载一个txt文件 getRes出来类型为string 能转换成数组吗 Laya.loader.load("res/text.txt", Handler.create(this, onAssetLoaded1), null, Loader.TEXT); var pic1 = Loader.getRes("res/2D特效/text.txt"); console.log(typeof pic1); 输出的类型为string 2017-06-20 添加评论 免费帖 --> ...

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

352. 回调函数... [ 65%]

回调函数... constructor(){ Laya.loader.load(this.skins, Handler.create(this, this.onUIAssetsLoaded)); } aaa() { } function onUIAssetsLoaded( this.aaa();//为什么回调函数不能调用,undefined } 2017-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

353. 范例里。已经预加载资源,但是调试里面无法显示出资源。 [ 65%]

...7-10-25 16:48 @q8196901:json文件需要指定资源类型,例如:Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢

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

354. 将字节数组转为图片 [ 65%]

...yte layaAir端加载了img.byte文件后如何还原为图片?flash端的loader有个loadBytes方法可以加载字节数组,但是layaAir端没有相关方法实现 2017-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

355. 3d导入粒子效果报错 [ 65%]

...ite3D = Laya.Sprite3D.load("res/partical1/sceneFXMaker.lh"); 报错 Error: LoaderManager:unknown file(res/partical1/Assets/IGSoft_Tools/FXMaker/ToolResource/Texture/MapGrid.psd) extension with: psd. at LoaderManager.__proto._create (file:///C:/Users/borui/Desktop/Cube3D/bin/libs/laya.core.js:13120:1...

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

356. 报错,这不是个构造函数 "StartPage is not a constructor" [ 65%]

...n(){ (function(){ Laya.init(667,375); Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })() function onLoaded(){ var StartPage = new StartPage(); Laya.stage.addChild(StartPage); var GamePage = new GamePage(); Laya.stage...

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

357. 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 [ 65%]

...量加载json文件,然后等这些文件统一加载完后回调 看了Loader类的用法好像只能加载单一文件,LoaderManager用于批量加载可官网没有DEMO,并不知道怎么用。有大佬能给出个LoaderManager的使用示例么。或者再详细能否讲下LoaderLoade...

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

358. Image 动态替换图片后变小了 [ 64%]

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

359. UI-Clip [ 64%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { showBg(); createTimerAnimation(); showTotalSeconds(); createController(); } function showBg() { var b...

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

360. 混淆 JS 后不支持()=>{}的回调? [ 64%]

...:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 Laya.loader.create 进度回调函数执行两次 打包百度小游戏不能播放声音?是api不支持 还是发生了改变 或者格式问题? Laya.Handler.create 回调 问题状态 最新活动: 2018-04-18 14:32 浏览:...

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