大约有 1,138 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0056 秒)
Laya_社区(821) Laya2.0_文档(173) Laya_示例(51) Laya2.0_示例(43) Laya3.0_api(23) Laya3.0_文档(20) Laya2.0_api(4) laya_api(3)
... this.__bind.load(GamePath.single.getSpinePath("tank_blue.sk"),Laya.Handler.create(this,this.testLoadComplete)); } private __bind:BindSkeleton; private testLoadComplete():void{ let source:BindSource=new BindSource("gongji"); source.gr...
来源: Laya_社区 发布时间: 20190805
...UI(): void { Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(this, function (): void { this.changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")) as Laya.Button; this.changeActionButton.size(160, 40); this.changeA...
来源: Laya_示例 发布时间: 20251219
...00); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设...
来源: Laya2.0_文档 发布时间: 20210715
...o完成回调异常! Tween.to(this.floatTxt, {y:-30}, 600, Ease.expoOut, Handler.create(this,onFloatComplete)); protected function onFloatComplete(callBack:Function):void { this.removeSelf(); } 我用这个缓动来做飘字效果,完成回调的时候,把飘字对象在场景上移除,结...
来源: Laya_社区 发布时间: 20170426
... Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(layabox: Laya.Texture2D): void{ ball1mat.albedoTexture = layabox; })); //ball1mat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); ball1.meshRenderer.material = ball1mat; //添加刚体 ball1.addCo...
来源: Laya_社区 发布时间: 20190506
...renders.Render; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; import wawaji.Wawaji; /** * ... * @author zzz */ public class WWJ_Main { private cons...
来源: Laya_社区 发布时间: 20170822
... Laya.loader.load( loadList, Laya.Handler.create(this, () => { var label=this.owner.getChildByName("time") as Laya.Label; label.text=((Date.now() - nt) / 1000 + "秒"); }) ); ...
来源: Laya_社区 发布时间: 20240628
...; Laya.loader.load([GameConfig.getAssetsFile("comp")],Handler.create(this, onComplet)); } private var imag:Image; private function onComplet():void { imag=new Image("ui/comp...
来源: Laya_社区 发布时间: 20170510
...,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处理 this.com...
来源: Laya2.0_文档 发布时间: 20210715
...kimg.loadImage("http://img.diyphoto.cn/Mask/im ... ot%3B,0,0,500,500, Handler.create(this,function():void{ photoimg.removeChild(maskimg); })); }); 必须这么写才行 先添加 在移除 ljy328803417 • 2018-02-26 17:40 我也出现了上面的问题,结果发现是显示对象没高宽问...
来源: Laya_社区 发布时间: 20160923