大约有 298 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0038 秒)
Laya_社区(77) Laya3.0_api(62) Laya2.0_api(58) laya_api(54) Laya2.0_文档(19) Laya2.0_示例(11) Laya_示例(11) Laya3.0_文档(6)
在玩一玩上,this.mouseX 或者 this.stage.mouseX,移动位置一直对不上,在本地或者微信上都正常 在玩一玩上,this.mouseX 和 this.mouseY 或者 this.stage.mouseX和this.stage.mouseY,移动位置一直对不上,而且偏差很大,在本地或者微信上都正常。...
来源: Laya_社区 发布时间: 20180918
Laya.stage.mouseX; Laya.stage.mouseY取到的坐标用来赋给画曲线方法的起点;在左顶点正常,越往右下角起点就越偏移了 // 程序入口 class GameMain { private ps: Laya.Sprite; a: number; b: number; path: Array<number> = ; constructor() { Laya.init(1600, 1400); La...
来源: Laya_社区 发布时间: 20170721
...dler; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var tiledMap; var mLastMouseX = 0; var mLastMouseY = 0; var mX = 0; var mY = 0; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Stat.show(...
来源: Laya_示例 发布时间: 20241119
...peScript三种开发语言、LayaAirIDE让项目开发更高效。let mLastMouseX = 0, mLastMouseY = 0, mX, mY; class TiledMap_ScrollMap { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Event = Laya.Event, Stat = Laya.Stat; // 不支持WebGL时自动切换至Ca...
来源: Laya2.0_示例 发布时间: 20241119
...ger mouseMoveAccuracy : Number = 2 鼠标移动精度。MouseManager mouseX : Number = 0 canvas 上的鼠标X坐标。MouseManager mouseY : Number = 0 canvas 上的鼠标Y坐标。MouseManager multiTouchEnabled : Boolean = true[static] 是否开启多点触控MouseManagerPublic Methods ...
来源: Laya2.0_api 发布时间: 20190513
...emove", this, onMouseMove); } function onMouseMove() { bg2.x = -Laya.stage.mouseX * 2; bg2.y = -Laya.stage.mouseY * 2; maskSp.x = Laya.stage.mouseX; maskSp.y = Laya.stage.mouseY; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Browser = Laya.Browser; import Handle...
来源: Laya_示例 发布时间: 20241119
...Sp; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, () => { bg2.x = -Laya.stage.mouseX * 2; bg2.y = -Laya.stage.mouseY * 2; maskSp.x = Laya.stage.mouseX; maskSp.y = Laya.stage.mouseY; }); } } new Sprite_MagnifyingGlass();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Browser...
来源: Laya2.0_示例 发布时间: 20241119
...Manager Index Properties disableMouseEvent mouseDownTime mouseMoveAccuracy mouseX mouseY enabled instance multiTouchEnabled Methods check3DUI handleCapture handleExclusiveCapture releaseCapture runEvent setCapture Properties disableMouseEvent disableMouseEvent: boolean = false Defined in laya/events...
来源: Laya3.0_api 发布时间: 20231102
...处理*/ function onMouseMove(e) { button.x = Math.max(Math.min(Laya.stage.mouseX, endPosition), beginPosition); } /**抬起事件处理*/ function onMouseUp(e) { Laya.stage.off(Event.MOUSE_MOVE, this, onMouseMove); Laya.stage.off(Event.MOUSE_UP, this, onMouseUp); Laya.stage.off(Event.MOUSE_OUT, thi...
来源: Laya_示例 发布时间: 20241119
...件处理*/ onMouseMove(e) { this.button.x = Math.max(Math.min(Laya.stage.mouseX, endPosition), beginPosition); } /**抬起事件处理*/ onMouseUp(e) { const Event = Laya.Event, Tween = Laya.Tween; Laya.stage.off(Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.off(Event.MOUSE_UP, this, this.o...
来源: Laya2.0_示例 发布时间: 20241119