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

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

501. 关于ASTC使用问题和建议 [ 63%]

...理时就会报错,需要使用异步的方式来处理         Laya.loader.load("ui/guide01.ktx", Laya.Handler.create(this, (res)=>{             this.img.texture = res;         })); 这样一来,不同的平台就需要使用不同的编程方式就大大降低了易用性,...

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

502. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 63%]

...esInfo.__proto.event (http://127.0.0.1:59022/game/code.js:483:28)     at LoaderManager.__proto._endLoad (http://127.0.0.1:59022/game/code.js:13152:11)     at Loader.onLoaded (http://127.0.0.1:59022/game/code.js:13128:10)     at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:...

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

503. vivo小游戏 LayaIDE2.2.0使用fairygui报错 [ 63%]

...fairygui界面报错, fgui.UIConfig.packageFileExtension = "json"; Laya.loader.load([     { url: "res/Basics_atlas0.png", type: Laya.Loader.IMAGE },     { url: "res/Basics.json", type: Laya.Loader.BUFFER }     ], Laya.Handler.create(this, this.onLoaded)); }  onLoaded(): void {     console...

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

504. playSound和playMusic结束时候有异常抛出 [ 63%]

playSound和playMusic结束时候有异常抛出 1. loader加载了{url:"res/music/Music_start.mp3",type:Laya.Loader.SOUND}资源 2. 加载结束后,调用Laya.SoundManager.playSound("res/music/Music_start.mp3") 3. 声音播放完成后,系统抛出异常__proto._tryClearBuffer=function(sourceN...

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

505. UI图片资源不显示 [ 63%]

... 微博 QZONE 微信 hjy1234123 赞同来自: json文件没加载到 Laya.loader.load([{url: "res/atlas/**.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); 像这样加载一下,再打开界面 2017-02-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...

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

506. load 跨域请求 [ 63%]

load 跨域请求 Laya.loader.load(resUrl+'bin/res/atlas/dice.json', Laya.Handler .create(this, this.init), null, Laya.Loader.ATLAS); 这个json提示跨域了,怎么解决好 2017-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

507. getimagedata直接调用无法获取有效像素问题 [ 63%]

...key3.png");           // 方法2:使用drawTexture         Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function()         {             var t = Laya.loader.getRes("../../res/apes/monkey2.png");             var ape = new Sprite();             a...

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

508. 自定义loadingView [ 63%]

...进行进度值传参 dd.loading(50); } //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } 这里的dd=__JS__("window.loadingView"); 换成 ts 怎么写 Apple • 2018-04-16 16:22 直接 Laya.Brows...

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

509. 微信小游戏加载外部json可以加载成功,但是加载外部图片就不行,没有任何反应 [ 63%]

...加载成功,但是加载外部图片就不行,没有任何反应 Laya.loader.load(["https://xxdzz.shoujiyeyou.net/ ... ot%3B, "https://xxdzz.shoujiyeyou.net/ ... ot%3B], Handler.create(this, this.onLoaded), null, "json");   Laya.loader.load(["https://xxdzz.shoujiyeyou.net/mmphp/19.png"], Handl...

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

510. LayaAir IDE 语言包的使用? [ 63%]

...age { import laya.display.Stage; import laya.display.Text; import laya.net.Loader; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { public function Main() { Laya.init(640, 960, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.bgColor = "#eeffcc"; Laya.loader.load("l...

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