大约有 1,300 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)
Laya_社区(1024) Laya2.0_文档(79) Laya3.0_文档(59) Laya_示例(51) Laya3.0_api(44) Laya2.0_示例(39) laya_api(2) Laya2.0_api(2)
...理时就会报错,需要使用异步的方式来处理 Laya.loader.load("ui/guide01.ktx", Laya.Handler.create(this, (res)=>{ this.img.texture = res; })); 这样一来,不同的平台就需要使用不同的编程方式就大大降低了易用性,...
来源: Laya_社区 发布时间: 20220919
...形式加载。或者传入地址数组。即可加载多个模型 Laya.loader.create([ {url:"资源目录/模型名字.lm"}, {url:"同上.lm"}, {url:"同上"}, {url:"同上"} ],Handler.create(this,onLoaded)); 2018-05-28 0 2 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 白夜行 Animat...
来源: Laya_社区 发布时间: 20180528
...ion Main() { Laya.init(1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img:Image=new Image(); img.skin="bg2.png"; panel=new Panel(); panel.vScrollBarSkin...
来源: Laya_社区 发布时间: 20161103
....core.js:1410) at ResInfo.__proto.event (laya.core.js:1166) at LoaderManager.__proto._endLoad (laya.core.js:14880) at Loader.onLoaded (laya.core.js:14850) at EventHandler.__proto.runWith (laya.core.js:1409) at Loader.__proto.event (laya.core.js:1166) at Loader.__p...
来源: Laya_社区 发布时间: 20200201
...加载的时候都会重新加载图片 我用的语言是JS来写,用Laya.loader.load进行预加载,放数组url路径,在progress哪里做一个加载完成进度事件,其他参数默认原有的配置,甚至修改缓存为true ,强制加载为false,但是仍然没有效果 每次都...
来源: Laya_社区 发布时间: 20170217
... Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { //Laya.loader.load("resources/files/layaAir.mp4").then(() => { this.VideoNode.play(); //播放视频 //}); }) } } Laya.loader.load没有必要,在IDE里面已经赋...
来源: Laya_社区 发布时间: 20251218
...Laya.View.regComponent("ScaleButton", ScaleButton); Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame)); } private loadGame(): void { var resArray = [ { url: "res/atlas/lobby/cre...
来源: Laya_社区 发布时间: 20181213
...得场景内的元素 layaAir TS项目如何引用protoBuf库? 请问下loader如何强制加载一个文件,避免浏览器的缓存 微信小程序 发布后缺少app.json文件 怎么实现同一个工程内分包? 微信小游戏中访问带空格的文件出错 问题状态 最新活动: ...
来源: Laya_社区 发布时间: 20180301
...); var assets:Array = []; assets.push({url:[ "fish_6.png" ],type:Loader.IMAGE}); Laya.loader.load(assets,Handler.create(this,onLoaded)); } private function onLoaded():void{ var img:Image = new Image("fish_6.png"); img.on(Event.CLICK,this,onClick); img.mouseThrough = true; Laya.st...
来源: Laya_社区 发布时间: 20180314
... var lobbyRes:Array<any> = [ {url: "Lobby/Sound/BG309.mp3",type:Laya.Loader.SOUND}, } Laya.loader.load(fightLandlordRes, Laya.Handler.create(this, this.resLoaded)); Laya.SoundManager.playMusic("Lobby/Sound/BG309.mp3"); 2017-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20170925