大约有 174 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0178 秒)
... 有自带这种方式 这里我们用到图集 和 普通图片 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
...JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onCompl...
来源: Laya_社区 发布时间: 20190307
...关于遮罩的用法,在哪块可以找到? Laya.URL.basePath与Laya.loader.load用法 const 用法 关于几种文本的区别与用法 能否恢复Animation.getGraphicBounds在1.6时的用法 Matrix4x4的decompose函数用法 clearRes好像没作用,或许我的用法不对 关于__JS__的...
来源: Laya_社区 发布时间: 20170831
...ge { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.ui.Box; import laya.ui.CheckBox; import laya.ui.Clip; import laya.utils.Handler; import ui.test.ListPageUI; public class LayaUISample { private var listP:ListPageUI;//UI面板 private var arr:Array;//list...
来源: Laya_社区 发布时间: 20170313
...是加载sk完成前,就调用动画导致 因此,在最开始用Laya.loader.Load(["drgon.sk"]......)这样的方式预加载 !!!结果,预加载时报错,就是这里: laya.core.js的7430行 if (this._pos_+2 > this._length)throw "getUint16 error - Out of bounds"; 但是,...
来源: Laya_社区 发布时间: 20180622
...大的情况 __proto.onConfigLoaded=function(){ Laya.init(600,400); Laya.loader.load([{url:"res/atlas/comp.json",type:"atlas"}],Handler.create(this,this.onLoadUi)); } __proto.onLoadUi=function(){ Laya.timer.loop(100,this,this.onLoaded); } __proto.onLoaded=function(){ if(this.isOpen){ return; } this....
来源: Laya_社区 发布时间: 20190517
....Stage.SCREEN_NONE; var uiResArr =[ {url:"res/atlas/comp.atlas",type: Laya.Loader.ATLAS}, ]; Laya.loader.load (uiResArr , Laya.Handler.create(this,this.onLoded)); //加载图片 this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket =...
来源: Laya_社区 发布时间: 20180210
... 0 0 分享 微博 QZONE 微信 Recovery 赞同来自: 微信小游戏Laya.loader.loadPackage 与 Laya.URL.basePath的互斥问题 - layabox问答社区-HTML5引擎社区-LayaAir开发者社区 试试这个 2025-09-26 0 0 分享 微博 QZONE 微信 Fany 赞同来自: 感谢@Recovery 帮助 目前...
来源: Laya_社区 发布时间: 20250925
...); 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
...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