大约有 4,095 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0080 秒)
Laya_社区(3318) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(114) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...取并修改自身材质: ...... //添加3D场景----------------------- this.scene = new Laya.Scene(); Laya.stage.addChild(this.scene); //方法一:直接异步加载 // var mesh:Laya.Mesh = Laya.Mesh.load("LayaScene_01/Assets/model/loveScene_jianzhu.lm"); // var meshSprite3D:Laya.MeshSprite3D ...
来源: Laya_社区 发布时间: 20171109
...都没执行 LayaAir 1.7.17 beta JS版本 function postData(url,request) { this.http = new Laya.HttpRequest(); //new一个HttpRequest类 this.http.once(Laya.Event.PROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //数据传输完成后,会...
来源: Laya_社区 发布时间: 20180315
...tatic s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=new MapManager(); this.s_instance.init(); } return this.s_instance; } private init() { } private skins: Array<string>; private mapImg:Laya.Image; private constructor() { } public GetMa...
来源: Laya_社区 发布时间: 20171124
...a.resource.Texture类 __proto.recoverBitmap=function(){ var _$this=this; var url=this._bitmap.url; if (!this._destroyed && (!this._bitmap || this._bitmap.destroyed)&& url){ Laya.loader.load(url,Handler.create(this,function...
来源: Laya_社区 发布时间: 20190311
...rce&name=GarbageCollection)) ```typescript function(e:Laya.Event):void { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不...
来源: Laya2.0_文档 发布时间: 20210715
fairygui库中this._displayObject空判断问题 为什么其他的方法都加了this._displayObject为null的判断(例如 handleSizeChanged、handleScaleChanged、handleGrayedChanged等等)而 handleXYChanged中却不做null判断,是有什么特殊原因吗? 附件 : --> 2019-10-17 添...
来源: Laya_社区 发布时间: 20191017
...新创建的图片,会报这个错:node._setParent is not a function this.imageBg = this.owner.getChildByName("image_bg"); console.log("this.imageBg==="+this.imageBg); for (let iColumns = 1; iColumns < this.intColumns; iColumns++) { this.arrLove[iColumns] = []; for (let iRows = 1; iRows < ...
来源: Laya_社区 发布时间: 20190625
...用的类库问题 var ViewStack=(function(_super){ function ViewStack(){ this._items=null; this._selectedIndex=0; ViewStack.__super.call(this); this._setIndexHandler=Handler.create(this,this.setIndex,null,false); } __class(ViewStack,'laya.ui.ViewStack',_super); 1. ViewStack.__super.call(this); 2. _...
来源: Laya_社区 发布时间: 20180313
...着变小 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
...rite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_close.png'); let box:laya.physics.BoxCollider = this._boll1.addComponent(laya.physics.BoxCollider); box.height =...
来源: Laya_社区 发布时间: 20190428