大约有 283 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0041 秒)
...erial.js:34 (anonymous) function CustomMaterial() { CustomMaterial.__super.call(this); this.setShaderName("CustomShader"); } Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial); CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.NORMALTEXTURE = 2; CustomMaterial.ALPHATES...
来源: Laya_社区 发布时间: 20170526
...rite = Laya.Sprite; var Text = Laya.Text; function UIDropBox() { UIDropBox.super(this); this.txt = this.getTextFeild(); this.txt.y = 50; this.txt.text = 'aasassa'; console.log(this.addChild);//undefined console.log(this._super);//undefined this.addChild(this.txt); } Laya.class(UIDropBox, "UIDropBox"...
来源: Laya_社区 发布时间: 20161226
... = Laya.Scene; export default class Game3D extends Scene { constructor() { super(); //初始化引擎 Laya3D.init(0, 0); var scene_360 = Laya.loader.getRes("LayaScene_PUCHENG3D/Conventional/PUCHENG3D.ls") as Laya.Scene3D; Laya.stage.addChildAt(scene_360, 0); var camera = (scene_360 as Laya.Node).get...
来源: Laya_社区 发布时间: 20190813
...ript class HttpRequestExtension extends Laya.HttpRequest { constructor() { super(); } public send(url:string,data:any=null,method:string="get", responseType:string="text", headers:any=null):void{ super.send(url,data,method,responseType,headers); this._http.upload.onprogress= function(e:any):void { /...
来源: Laya2.0_文档 发布时间: 20210715
...y.Sprite; class RecordItem extends Sprite { public function RecordItem() { super(); this.size(240, 27); } } 2017-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 DemonWu 赞同来自: Charles _loadingBg添加m...
来源: Laya_社区 发布时间: 20170323
...detroyChildren===void 0)&& (detroyChildren=true); _super.prototype.destroy.call(this,detroyChildren); // native会崩溃 // this.videoElement.removeEventListener("abort",Video.onAbort); // this.videoElement.removeEventListener("...
来源: Laya_社区 发布时间: 20181207
... (destroyChild===void 0)&& (destroyChild=true); this._idMap=null; _super.prototype.destroy.call(this,destroyChild); var list=laya.display.Scene.unDestroyedScenes; for (var i=0,n=list.length;i < n;i++){ if (list[i]===this){ list.splice(i,1); return; } } }这里改动了同一个数组,...
来源: Laya_社区 发布时间: 20181128
...helper' export default class welcome extends Laya.Script { constructor() { super() } onEnable() { wxHelper.onShow(this.resumeGame) wxHelper.onHide(this.pauseGame) } resumeGame () { console.log('resumeGame') } pauseGame () { console.log('pauseGame') } onDestroy () { wxHelper.offHide() wxHelper.offSho...
来源: Laya_社区 发布时间: 20181101
...stExtension extends HttpRequest { public function HttpRequestExtension() { super(); } public override function send(url:String, data:*=null, method:String="get", responseType:String="text", headers:Array=null):void { super.send(url,data,method,responseType,headers); this._http.upload.onprogress= fun...
来源: Laya2.0_文档 发布时间: 20210715
...sionBoll extends Laya.Sprite { 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.Bo...
来源: Laya_社区 发布时间: 20190428