大约有 147 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0055 秒)
...点一下就缩小0.05倍 Laya.stage.on(Laya.Event.MOUSE_DOWN,this,()=>{ _picScale-=0.05; sp.scale(_picScale,_picScale); //缩小到0.7倍时,图片就不见了 ...
来源: Laya_社区 发布时间: 20200422
...", Laya.Handler.create(this, this.onLoadFinish)); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); } onLoadFinish(layaMonkey){ this.layaMonkey=this.scene.addChild(layaMonkey); // Laya.timer.frameLoop(1, this, this.onFrameLoop); } onFrameLoop(){ this.layaMonkey.transform.rotate(this.rotati...
来源: Laya_社区 发布时间: 20200903
...in Camera") as Camera; Laya.stage.on(Event.MOUSE_DOWN, this, onMouseDown); trace(camera); })) } public function onMouseDown():void { trace(camera); ...
来源: Laya_社区 发布时间: 20190328
...this.phasorSprite3D = new Laya.PhasorSpriter3D(); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDown); } private onMouseDown():void{ this.camera.viewportPointToRay(new Laya.Vector2(Laya.MouseManager.instance.mouseX,Laya.MouseManager.instance.mouseY),this.ray); Laya.Physics.rayCast(this.ray,...
来源: Laya_社区 发布时间: 20181020
...aya.stage.on(Laya.Event.RESIZE,this,this.resize); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); this.resize(); } //地图加载完成的回调 private completeHandler(e: any = null): void { this.onLoaded(); } /** * 移动地图视...
来源: Laya3.0_文档 发布时间: 20230303
...derColor = "#fa1515"; this.txt.overflow = "scroll"; this.txt.on(Laya.Event.MOUSE_DOWN, this, this.startScrollText); } /* 开始滚动文本 */ startScrollText() { prevX = this.txt.mouseX; prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(Laya.Event.M...
来源: Laya3.0_文档 发布时间: 20241014
...his.player); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(laya.events.Event.MOUSE_UP, this, this.onMouseUp); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop = function(){ // 检测人...
来源: Laya_社区 发布时间: 20160803
...his.player); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop = function(){ // 检测人物是否踩在地板上面了 for(var i = this.mapFloor.numChildr...
来源: Laya_社区 发布时间: 20160801
... 0; Laya.stage.on(Laya.Event.RESIZE,this,resize); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP,this,mouseUp); resize(); } /** * 移动地图视口 */ function mouseMove(){ var moveX = this.MapX - (Laya.stage.mouseX - this.mLastMouseX); var moveY = this.MapY ...
来源: Laya2.0_文档 发布时间: 20210715
...aya.stage.on(Laya.Event.RESIZE,this,this.resize); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); this.resize(); } /** * 移动地图视口 */ private mouseMove():void{ var moveX:number = this.MapX - (Laya.stage.mouseX - this.mLastM...
来源: Laya2.0_文档 发布时间: 20210715