• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 283 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0040 秒)

121. 我想动态改自定义shader里的值,应该怎么写?? [ 66%]

...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

122. 请问如何使我的自定义类UIDropBox继承Laya.Sprite? [ 66%]

...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

123. PBR标准材质实时阴影渲染问题 [ 66%]

... = 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

124. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 66%]

...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

125. 鼠标穿透问题 [ 66%]

...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

126. loadLib("libs/laya.device.js"); native上会随机宕 [ 66%]

...detroyChildren===void 0)&& (detroyChildren=true);         _super.prototype.destroy.call(this,detroyChildren);         // native会崩溃         // this.videoElement.removeEventListener("abort",Video.onAbort);         // this.videoElement.removeEventListener("...

来源: Laya_社区 发布时间: 20181207

127. bug:laya.Scene.destroy [ 66%]

... (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

128. 微信小游戏,实现监听前后台切换 [ 66%]

...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

129. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 65%]

...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

130. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 65%]

...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