大约有 803 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0064 秒)
...howall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); } private function setup(e:*=null):void { normalizeApe(); makeRedApe(); grayingApe(); } private function normalizeApe():void { var originalApe:Sprite = createApe(); apeTexture = Laya.loader.getRes(ApePat...
来源: Laya2.0_文档 发布时间: 20210715
...oaded回调方法 Laya.loader.load("res/atlas/ui/boos.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.loadAnimation("test.ani"); // //添加到舞台 // Laya.stage.addChild(tl); // //...
来源: Laya_社区 发布时间: 20190708
...ld; }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){ console.log("complete"); }),ConstValue.animationDelay); 无法直接设置原因是浅拷贝变量无法同步到原对象中去 2018-01-12 0 3 分享 微博 QZONE 微信 源 赞同来自:...
来源: Laya_社区 发布时间: 20170905
...mage.json Laya.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite ...
来源: Laya2.0_文档 发布时间: 20210714
...oader.load([{ url: zipUrl, type: Laya.Loader.BUFFER }], null, Laya.Handler.create(this, this.onLoadCfg, null, false)).then( (value) => { JSZip.loadAsync(value).then( (zipData: JSZip) => { ...
来源: Laya_社区 发布时间: 20230208
...mber = 1, percent?: boolean): DrawRectCmd { return this.addCmd(DrawRectCmd.create(x, y, width, height, fillColor, lineColor, lineWidth, percent)); } 代码示例: let sp = new Laya.Sprite(); //画矩形 sp.graphics.drawRect(20, 20, 100, 50, "#ffff00", "#00ff00", 5, false); this.owner.addChild(sp);...
来源: Laya3.0_文档 发布时间: 20251010
...载时时这样调用 Laya.loader.load("res/MainBlood.atlas", Laya.Handler.create(this, this.onAtlasLoaded), null, Laya.Loader.ATLAS); 卸载时这样 Laya.loader.clearRes("res/MainBlood.atlas");在Laya.Loader.loadedMap里查找是没有了,但是统计面板的CurMem降不下来,工程已经打...
来源: Laya_社区 发布时间: 20180305
Animation的createFrames为何加载不了有的图集资源 package { import laya.ani.AnimationState; import laya.display.Animation; import laya.net.Loader; import laya.ui.Image; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始...
来源: Laya_社区 发布时间: 20170220
...: "res/start.json", type: Loader.ATLAS}); Laya.loader.load(assets, Handler.create(this, this.onComplete)); } private onComplete(): void { var texture:Texture = Laya.loader.getRes("start/sg.png"); var sp = new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); Laya.stage.addChild(sp); var ani: Laya...
来源: Laya_社区 发布时间: 20170329
..."bg/hallrom.json", type:Loader.JSON}, ]; Laya.loader.load(altsArr, Handler.create(this, onComplete)); function onComplete():void{ trace("加载完成"); } 2018-05-18 1 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 楼上的回答是正确的,关于重复过滤引擎是有判断...
来源: Laya_社区 发布时间: 20180518