大约有 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)
...部XR)StageX不对 //注册事件 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_OUT, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseEvent); //鼠标yi'...
来源: Laya_社区 发布时间: 20230619
.../点击最先出来的按钮,会显示下一层界面,同时隐藏自己 this.btnFirst.on(Laya.Event.CLICK, this, this.change, [0]); //点击上面一层的按钮,会隐藏该层,同时显示上一层 this.btnChange.on(Laya.Event.CLICK, this, this.change, [1]); //初始时默认上面一层不...
来源: Laya_社区 发布时间: 20180810
... public function CConnector() { this.sendBuf = this.output; this.recvBuf = this.input; this.on(Event.OPEN, this, OnConnected); this.on(Event.CLOSE, this, OnDisc...
来源: Laya_社区 发布时间: 20170920
对象mask的区域改变问题! private addedToStage():void{ this.__mask = new Laya.Sprite(); this.__mask.graphics.drawRect(0,0,this.img_bar.width,this.img_bar.height,"#000000"); this.setValue(0); } private setValue(v:number):void{ this.__mask.scaleX = v; this.img_bar.mask = null;//第二次设...
来源: Laya_社区 发布时间: 20170320
...elManager() { Laya.loader.create("res/Pipe/Pipe/a.lh", Laya.Handler.create(this, this.onCreateComplete()),Laya.Handler.create(this, this.onAssetsLoading)); } ModelManager.prototype.onCreateComplete = function () { console.log("onCreateComplete"); var pipe = Laya.loader.getRes("res/Pipe/Pipe/a.lh"); ...
来源: Laya_社区 发布时间: 20180514
图集动画结束回调有延迟 this.ded.addLabel("animOver",9); this.ded.on(Laya.Event.LABEL, this, this.onHitOver); this.ded.on(Laya.Event.COMPLETE, this, this.onHitOver); 两种方法都会有延迟,不能100%执行 2018-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20181108
...clone2.layer = 3; layaMonkey_clone3.layer = 4; ...... //移除所有图层 this.camera.removeAllLayers(); //添加显示图层(为相机添加一个蒙版) this.camera.addLayer(5); //显示用计数 this.layerIndex = 0 //给 ‘切换图层’ 按钮添加事件 每一次点击切换一个显示层 ...
来源: Laya2.0_文档 发布时间: 20210715
...clone2.layer = 3; layaMonkey_clone3.layer = 4; ...... //移除所有图层 this.camera.removeAllLayers(); //添加显示图层(为相机添加一个蒙版) this.camera.addLayer(5); //显示用计数 this.layerIndex = 0 //给 ‘切换图层’ 按钮添加事件 每一次点击切换一个显示层 ...
来源: Laya2.0_文档 发布时间: 20210715
...重复加载图片,走不到else里面,if的判断是否应该改为 !this._data if (!data._source){ this._data=data; this.event(/*laya.events.Event.PROGRESS*/"progress",0.5); ...
来源: Laya_社区 发布时间: 20190402
...话只水平居中没有垂直居中。 调试的时候,在Layout.layout(this),跳进去 在Layout._multiLineLayout(element)里面的updatePos(0,tWidth,i,tY,align,valign,lineHeight)函数里对元素根据对齐方式重新设置坐标。这里面感觉对垂直居中的y坐标的计算方式...
来源: Laya_社区 发布时间: 20180104