大约有 1,292 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0059 秒)
Laya_社区(1020) Laya2.0_文档(79) Laya3.0_文档(55) Laya_示例(51) Laya3.0_api(44) Laya2.0_示例(39) laya_api(2) Laya2.0_api(2)
...scaleMode = Laya.Stage.SCALE_NOSCALE; // Laya.stage.size(6000, 6000); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded)); function onLoaded(): void { var sprite = new Laya.Sprite(); sprite.loadImage('comp/bg.png'); Laya.stage.addChild(spr...
来源: Laya_社区 发布时间: 20170803
...; } }); (function loadUI() { var curStateIndex = 0; Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () { var changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "正常模式")); ...
来源: Laya_社区 发布时间: 20171127
...自: LayaAir 3.3.0-beta.4 可以传递参数 代码如下 Laya.loader.load(config.url, Laya.Loader.HIERARCHY).then((res: any) => { let view: Laya.Scene = res.create(); view.open(false, ...param); })这边能正常输出...
来源: Laya_社区 发布时间: 20250609
2.0.2使用worker加载图片的问题 Laya.loader.load加载图片时,如果使用worker加载,会调用到loadImage方法,然后执行这句话`this.worker.postMessage(url);`,然后 在worker.js中执行了这句话`onmessage=function(t){var e=t.data;switch(e.type){case"load":loadImage2(e...
来源: Laya_社区 发布时间: 20190605
...nction LoadRes() { var resArray = [ {url: "res/atlas/comp.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh2.json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComplete)) } function LoadResCompl...
来源: Laya_社区 发布时间: 20170228
... 我加载几十张图片,图片在外网服务器上面,然后我用loader加载 Laya.loader.load(resArr, Laya.Handler.create(null, function () { var a = new Laya.Image('comp/bg.png') Laya.stage.addChild(a) }), Laya.Handler.create(null, function (value) { console.log('加载进度:' + value) ...
来源: Laya_社区 发布时间: 20180808
...ookAt的用法 Texture图片能否进行翻转? Laya.URL.basePath与Laya.loader.load用法 请问关于遮罩的用法,在哪块可以找到? 编辑器下HtmlDIVElement属性能否支持style选项设置 请问下layaflash能否支持热更新? Laya.loader.clearTextureRes引起的内存泄...
来源: Laya_社区 发布时间: 20170419
...bgColor = "#ff0000"; Laya.stage.scaleMode = "fixedwidth"; Laya.loader.load("http://localhost/layabox/layabox/layabox/res/bg.png'", Handler.create(this, function () { var t = Laya.loader.getRes(skin); var _sprite = new Sprite(); _sprite.graphics.drawTex...
来源: Laya_社区 发布时间: 20170222
...en()的时候,图集没办法恢复。 问题定位: As3版本引擎,Loader类第370行,这句代码 var url:string = URL.formatURL(directory + name)错误,然后第375行tTexture.url = url,texture缓存了错误的资源地址,导致texture恢复资源的时候Laya.loader.load()这个...
来源: Laya_社区 发布时间: 20190109
... 代码: var ress=[{url:"res/atlas/games/cxmj/shaizi.json",type:Laya.Loader.ATLAS}]; Laya.loader.load(ress); var Animation = Laya.Animation; var dice=new Animation(); ...
来源: Laya_社区 发布时间: 20170105