大约有 2,033 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0059 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
... { Laya.init(500, 300); this.drawSomething(); } private drawSomething(): void { this.sp = new Sprite(); Laya.stage.addChild(this.sp); /...
来源: Laya2.0_文档 发布时间: 20210714
...ite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 1280, 720,Handler.create(this,()=>{ sp.graphics.getBoundPoints().forEach(e=>{ console.log("_getBoundPointsM:",e); }); })); sp.x=0; sp.y=0; this._sptse=sp; Laya.stage.addChild(sp);
来源: Laya_社区 发布时间: 20170423
...8-11-19 10:53 浏览: 1979 关注: 2 人 忽啊忽啊 • 2018-11-21 13:59 this.sp = new Laya.Sprite(); this.sp.loadImage("Attack_0_0002.png", Laya.Handler.create(this, (data)=>{ this.sp.graphics.drawTexture(this.sp.texture); var bounds = this.sp.getGraphicBounds(true); })); 这样绘...
来源: Laya_社区 发布时间: 20181117
...用getImageData了 //TextRender.isWan1Wan = true; this.charRender = new CharRender_Canvas(2048, 2048, TextRender.scaleFontWithCtx, !TextRender.isWan1Wan, false); TextRender.textRenderInst = this; ILaya.Laya['textRender'] = this; 必须修改bugIOS ...
来源: Laya_社区 发布时间: 20240802
...var命名为c,那么a组件的运行时代码里就可以直接用a.c或this.c访问到b组件; name是给显示节点对象的命名,请查看API手册里Node部分。同上面的例子,要在a组件的运行时里通过name访问b,要使用getChildByName(c) 2021-01-23 0 0 分享 微博 Q...
来源: Laya_社区 发布时间: 20180625
...Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this,onSkinLoaded)); } /***加载资源完成***/ private function onSkinLoaded(e:*=null):void { //显示背景图 showBg(); //创建计数器 createCounter(); //显示总数 showTotal(); //创建控制按钮 createController...
来源: Laya2.0_文档 发布时间: 20210714
...3D.load("LayaScene_SceneMonkey/Conventional/SceneMonkey.ls",Handler.create(this,function(res:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture...
来源: Laya2.0_文档 发布时间: 20210714
...Tween.to(letterText, { y : 300 }, 1000, Laya.Ease.bounceIn, Handler.create(this,changeColor,[letterText]), i * 100); ``` 由于需要增加新的引用,这次贴出全部的示例代码。 TweenDemo.js: ```javascript //初始化舞台 Laya.init(1334,750,Laya.WebGL); //背景颜色 Laya.stage.bgC...
来源: Laya2.0_文档 发布时间: 20210715
...d(["res/ui/progressBar.png", "res/ui/progressBar$bar.png"], Handler.create(this, this.onLoadComplete)); } onLoadComplete() { const ProgressBar = Laya.ProgressBar, Handler = Laya.Handler; this.progressBar = new ProgressBar("res/ui/progressBar.png"); Laya.stage.addChild(this.progressBar); this.progres...
来源: Laya2.0_示例 发布时间: 20251218
... 类代码如下: var GameStartView = function () { GameStartView.super(this); this.Start.on(Laya.Event.CLICK, this, this.open); console.log(this.Start); GameStartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStartView", GameStartUI); 输出:Butt...
来源: Laya_社区 发布时间: 20180213