大约有 779 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0051 秒)
...ser.clientHeight, Laya.WebGL); const path = "./res/apes/monkey2.png"; Laya.loader.load(path, Laya.Handler.create(this, function() { let tex = Laya.loader.getRes(path); let sp = new Laya.Sprite(); Laya.stage.addChild(sp); sp.graphics.drawTriangles( tex, 100, 0, new Float32Array([0,0,1,0,1,1,0,1]), ne...
来源: Laya_社区 发布时间: 20190829
...理时就会报错,需要使用异步的方式来处理 Laya.loader.load("ui/guide01.ktx", Laya.Handler.create(this, (res)=>{ this.img.texture = res; })); 这样一来,不同的平台就需要使用不同的编程方式就大大降低了易用性,...
来源: Laya_社区 发布时间: 20220919
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
... 有自带这种方式 这里我们用到图集 和 普通图片 1、Laya.Loader.IMAGE 2、Laya.Loader.ATLAS 因此我们的LayaSample.js需要修改一下加载代码如下: //加载单个资源 var asset = []; asset.push({ url : [ "res/background.png", "res/m_background.png", "res/floor.png" ...
来源: Laya_社区 发布时间: 20160801
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
...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
...加载成功,但是加载外部图片就不行,没有任何反应 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
...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
... 2018-12-20 0 1 分享 微博 QZONE 微信 xiaoman122 赞同来自: Laya.loader.load("res/1.pkm", Handler.create(null, function():void { var spr:Sprite = new Sprite(); spr.loadImage("res/1.pkm"); spr.pos(100, 100); Laya.stage.addChild(spr); }), null, Loader.IMAGE); 附件就...
来源: Laya_社区 发布时间: 20181219
...进行进度值传参 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