大约有 2,033 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0064 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...ed回调方法 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.comp.tab.selectHan...
来源: Laya2.0_文档 发布时间: 20210715
...? STATICATTR$(TestPageUI, ['uiView',function(){return this.uiView={"type":"View","child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,...
来源: Laya_社区 发布时间: 20170330
...来自: 么有。这个我给你个demo,你自己看看。 1.初始化 this.Matter.Events.on(this._engine, 'collisionActive', this.onCollision); 2.碰撞检测 private onCollision(event): void { console.log("碰撞了.."); var home = _gamePage._mainPage._playPage; for(var i = 0; i < even...
来源: Laya_社区 发布时间: 20180601
...性,再进行赋值操作,代码如下。// 刷新下数值 var temp = this.model.transform.localRotationEuler; // 再进行修改 this.model.transform.localRotationEulerY = 90;方案二:在laya.d3.js中,在set localRotationEulerX、set localRotationEulerY、set localRotationEulerZ等属性...
来源: Laya_社区 发布时间: 20210806
新手入坑请教下各位大神关于LayaMaxUI问题 /**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; var REG: Function = Laya.ClassUtils.regClass; export module ui.test { ex...
来源: Laya_社区 发布时间: 20190402
...Laya.stage.ALIGN_MIDDLE; Laya.stage.screenMode = Laya.stage.SCREEN_NODE;*/ this.tMap = new Laya.TiledMap(); var viewRect = new Laya.Rectangle(0,0,W,H); this.tMap.createMap("../bin/res/TileMap/orthogonal.json",viewRect); } Start(); 附件 : --> 2018-09-15 添加评论 免费帖 --> 分享 微博 Q...
来源: Laya_社区 发布时间: 20180915
...下 class conchFloatArrayKeyframe { constructor() { this._nativeObj = new _conchFloatArrayKeyframe(); } set time(value) { this._nativeObj.setTime(value); } get time() { return this._nativeObj.getTime(); } 这个 n...
来源: Laya_社区 发布时间: 20190629
...着变小 a1748004424 • 2018-02-11 16:41 if (e.delta > 0 && this.scaleX >= 0.5) { this.scaleX -= 0.1; this.scaleY -= 0.1; for (var i = 0; i < this.nodes.length; i++) { this.nodes[i].scaleX += 0.1; this.nodes[i].scaleY += 0.1; } } else if (e.delta < 0 && this.scaleX <...
来源: Laya_社区 发布时间: 20180211
...var Zszen; (function (Zszen) { var Test = (function () { function Test() { this.rand = Math.random(); } Test.output = function (){ console.log(this.rand); } return Test; }()); Zszen.Test = Test; })(Zszen || (Zszen = {}));我使用 var a = new Zszen.Test(); a.output(); //这句我调用说找不到, ...
来源: Laya_社区 发布时间: 20180112
...on", type: Laya.Loader.ATLAS }]; Laya.loader.load(arr, Laya.Handler.create(this, this.onProgress)); } onProgress() { this.Progress = new Progress(); Laya.stage.addChild(this.Progress); //加载资源进度并且监听 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAssetsLoaded), Laya.Ha...
来源: Laya_社区 发布时间: 20171217