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

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

71. 性能测试-卡通人物 [ 84%]

... Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCA...

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

72. JS里面定义一个函数,无法使用Laya.Handler.creat回调 [ 84%]

...tance = this; } onTxtLoad(aText){ console.info("dfasd"); } initTxt(){ Laya.loader.load("res/localtxt.txt",Laya.Handler.create(this, onTxtLoad),null,Loader.TEXT); } } 2019-01-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...

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

73. js预加载声音报错 [ 84%]

js预加载声音报错 Laya.loader.load(slot_sound_res, Laya.Loader.SOUND, Handler.create(this, onSoundProgress, null, false)); //游戏资源加载进度函数 function onSoundProgress(pro) { console.log("sound" + pro); } 这样写哪里错了? 2016-12-16 添加评论 免费帖 --> 分享 微...

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

74. 分享-js资源进度加载 [ 84%]

...gress: Progress; Socket: Socket; arr = [ { url: "images/1.jpg", type: Laya.Loader.IMAGE } , { url: "images/2.jpg", type: Laya.Loader.IMAGE } , { url: "images/3.jpg", type: Laya.Loader.IMAGE } , { url: "images/4.png", type: Laya.Loader.IMAGE } , { url: "images/5.jpg", type: Laya.Loader.IMAGE } , { ur...

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

75. [求助]无法使用loader预先加载 [ 84%]

[求助]无法使用loader预先加载 Laya.loader.retryNum = 0; var urls:Array = [ "res/mainpage/title.png", "res/mainpage/q.png", "res/mainpage/BtnNo.png", "res/mainpage/BtnYes.png" ]; Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader...

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

76. 内存优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 84%]

...源的进度进行显示,下面的编码为就是错误的。 1. `Laya.loader.load(urls, Laya.Handler.create(this, this.onAssetLoaded), Laya.Handler.create(this, this.onLoading));` 在上面的代码中,使用`Laya.Handler.create(this,this.onLoading)`返回的回调方法,是要处理progress...

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

77. 微信小游戏图片加载不出来 [ 84%]

...图片加载不出来 var resArray = [{ url: "ui/BG/Start.png", type: Laya.Loader.IMAGE }, { url: "ui/BG/load.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }, { url: "res/atlas/ui.atlas", type: Laya.Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler....

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

78. 载入场景报错 [ 84%]

...ra 和light,所有代码如下 import Handler=laya.utils.Handler; import Loader=laya.net.Loader; // 程序入口 class GameMain { constructor() { Laya.init(600, 400); Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT; Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL; Laya.stage.alignH = Laya.Stag...

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

79. LoaderManager里的create和load使用上有什么区别?分别用于什么样的场合? [ 84%]

LayaAir引擎 LoaderManager里的create和load使用上有什么区别?分别用于什么样的场合? 测了一下,调用create的方式,Laya.loader.getRes(xx.lh)获得的是Sprite3D对象,load方式,Laya.loader.getRes(xx.lh)获得的是内容json。 2017-05-11 添加评论 免费帖 -...

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

80. 内存优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 84%]

...度进行显示,下面的编码为就是错误的。 ```javascript Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading)); ``` 在上面的代码中,使用`Handler.create(this, onLoading)`返回的回调方法,是要处理progress加载进度事件,...

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