大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0099 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
如何获取animation对象像素值 项目代码如下: this.body.texture.getPixels(this.bound.x + i, this.bound.y + j, 1, 1); 问题: this.body已经是被显示在舞台上的animation对象了 animation的texture属性为什么是null。要去获取对象像素值怎么获取? 20...
来源: Laya_社区 发布时间: 20161216
... • 2021-09-23 10:27 timer修改建议:1:clear和clearAll里面移除 this._map[handler.key] = null和handler.key = ""这两句 :2:runTimer里移除this._map[handler.key] = null 3:_recoverHandler里this._map[handler.key] = null这一句换成delete this._map[handler.key] Laya_Fred...
来源: Laya_社区 发布时间: 20210915
... function BackGround() { //定义背景1 this.bg1 = null; //定义背景2 this.bg2 = null; //初始化父类 BackGround.__super.call(this); this.init(); } //注册类 BackGround ...
来源: Laya_社区 发布时间: 20170311
...castShadow = true; poolBox.push(box); } } }, creatPerson:function(parent){ this.ball = parent.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(.2,.2,.1))); var material = new Laya.StandardMaterial(); material.albedo = new Laya.Vector4(1,1,1,1); this.ball.meshRender.material = material; this.ball.mesh...
来源: Laya_社区 发布时间: 20180117
...何给loadprogress传参数? Laya.loader.load(myurl,Laya.Handler.create(this,this.loadComplete),Laya.Handler.create(this,this.loadprogress,["param"])); /** * 加载进度 */ private loadprogress(data:Array<any>):void{ console.log("加载进度: " + data);//加载进度: param }Laya.Handler...
来源: Laya_社区 发布时间: 20170221
...ge.bgColor = "#000000"; Laya.loader.load("comp/button.png", Handler.create(this, this.onLoaded)); } private onLoaded(): void { this.begin = new Begin(); Laya.stage.addChild(this.begin); } } new GameMain(); 2018-08-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20180829
使用Handler 返回name 始终是 undefined public function RegDlg() { this.btn_submit.name = Dialog.SURE; this.closeHandler = Handler.create(this ,this.onClose, ["123"],false); } private function onClose(name:String):void{ if(name == Dialog.SURE){ var di:NormalDlg = new NormalDlg(); di.popupConte...
来源: Laya_社区 发布时间: 20170324
...yaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //记载场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //加载相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector...
来源: Laya2.0_文档 发布时间: 20210714
...Sprite3D):void { super._initialize(owner); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); Laya.stage.on(Event.MOUSE_OUT, this, mouseOut); var camera:BaseCamera = owner.scene.currentCamera; 没有了 -- currentCamera 2017-02-18 添加评论 免费帖 -...
来源: Laya_社区 发布时间: 20170218
...频率依赖于参数指定时间。 ```javascript Laya.timer.frameLoop(1, this, animateFrameRateBased); Laya.stage.on("click", this, dispose); function dispose() { Laya.timer.clear(this, animateFrameRateBased); } ``` 当一个对象的生命周期结束时,记得清除其内部的Timer: ### **...
来源: Laya2.0_文档 发布时间: 20210715