大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0084 秒)
Laya_社区(2466) Laya2.0_文档(107) Laya3.0_文档(62) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
... SKEvent = Laya.Event; var Socket = Laya.Socket; var Byte = Laya.Byte; var Loader = Laya.Loader; var dcodeIO = Browser.window.dcodeIO; var ProtoBuf = dcodeIO.ProtoBuf; var ef_protocol = new EF_DataProtocol(); (function() { (function() { Laya.init(1334, 750, WebGL); Laya.stage.scaleMode = Stage.SCALE...
来源: Laya_社区 发布时间: 20201001
预加载结束之后还是报lose skin private loadRes():void{ Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } ...
来源: Laya_社区 发布时间: 20180314
...有一个默认尝试重新下载的时间跟次数限制,你可以参考LoaderManager这个类的一些变量,在官网API中都有详细的说明 2018-03-31 0 4 分享 微博 QZONE 微信 Laya_XS 赞同来自: 断网的话 在Loader里会返回error的回调,你直接监听Laya.loader.on(Eve...
来源: Laya_社区 发布时间: 20180331
...的JS与laya库的JS引用顺序,参考内容 <script src='laya.js' loader='laya'></script> <script src='js/all/ui.js' loader='laya'></script> 2、分包文件module.def放在项目根目录下 参考内容 module:"all/ui" path:"src/ui" /*[COMPILER OPTIONS:ForcedCompile]*/...
来源: Laya_社区 发布时间: 20180519
...的引擎代码,如果是在微信小游戏环境里,调用的是MiniLoader.load方法 这个方法里先调用了一次url = URL.formatURL(url);所以最后传进Loader.load里的url是已经formatURL过了的, 如果加载的是图集的话,再Loader.onLoad方法里加载图集关联的图...
来源: Laya_社区 发布时间: 20180507
...怎么调用下载到本地的资源 cuixueying • 2017-05-18 17:10 Laya.loader.load可以对服务器的资源进行预加载,并缓存到本地,Laya.loader.getRes可以获取缓存下的资源文件! 我盼乙卯 • 2018-05-31 15:42 @cuixueying:请问这个缓存到本地是缓存到硬盘...
来源: Laya_社区 发布时间: 20170319
...j.com/api/player/auth/img?key=testpng oppo小游戏下 无法显示 Laya.loader .load( "https://sh.mudgj.com/api/playe ... ot%3B, Laya.Loader.IMAGE ) .then((res: Laya.Texture) => { let sp = new Laya.Sprite(); sp.texture = res; sp.pos(0, 200); this.addChild(sp); });无法正常显示 检查发...
来源: Laya_社区 发布时间: 20250818
...7-10-25 16:48 @q8196901:json文件需要指定资源类型,例如:Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢
来源: Laya_社区 发布时间: 20171025
...ao Ss.png"); box.meshRender.material = material; Laya.loader.create("cj\cj-default001.lm",Laya.Handler.create(this,this.onCreateComplete)); function onCreateComplete() { var mesh = Laya.loader.getRes("cj\cj-default001.lm"); var meshSprite3D = new Laya.MeshSprite...
来源: Laya_社区 发布时间: 20180427
...tElement.clientWidth * 2, document.documentElement.clientHeight * 2); Laya.loader.load('./card/atlas/card.atlas', Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("./card/card.ani"); //添...
来源: Laya_社区 发布时间: 20180817