大约有 147 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0042 秒)
...tected tempRotationY: Laya.Quaternion = new Laya.Quaternion(); protected isMouseDown: boolean = false; protected rotaionSpeed: number = 0.00006; protected camera: Laya.BaseCamera = new Laya.Camera; protected scene: Laya.Scene3D = new Laya.Scene3D; speed: number = 0.01; constructor() { super(); } /**...
来源: Laya3.0_文档 发布时间: 20251010
... 3 个回复 coder 赞同来自: 获取触发事件我摸索出来了 onMouseDown(e){ console.log("mouseDown "+e.target.name); } onMouseUp(e){ console.log("mouseup"); } 2018-10-29 0 0 分享 微博 QZONE 微信 coder 赞同来自: 可是 https://layaair.ldc.layabox.com/api 实在没有对js有什...
来源: Laya_社区 发布时间: 20181029
... 0){ for (i=0;i < n;i++){ var e=this._eventList; switch (e.type){ case "mousedown": this._mouseTouchDown(); break ; case "mouseup": this._mouseTouchUp(); break ; case "mousemove":; var mousePoint=Input3D._tempPoint; mousePoint.setTo(e.pageX,e.pageY); Laya.stage._canvasTransform.invertTransformPoi...
来源: Laya_社区 发布时间: 20200119
...侧属性面板中,设置触发播放的事件属性`playEvent`的值为`mousedown`。如图10所示。 (图10) ### 3、在项目中展示动效模板的效果 创建一个`Mian.js`文件,在index.html中引用。编写以下代码: ```javascript //初始化引擎 Laya.init(13...
来源: Laya2.0_文档 发布时间: 20210715
...侧属性面板中,设置触发播放的事件属性`playEvent`的值为`mousedown`。如图10所示。 (图10) ### 3、在项目中展示动效模板的效果 创建一个`Mian.ts`文件,在index.html中引用。编写以下代码: ```typescript class Main { constructor() { /...
来源: Laya2.0_文档 发布时间: 20210715
...侧属性面板中,设置触发播放的事件属性`playEvent`的值为`mousedown`。如图10所示,然后按F12导出UI页面,即可在项目中使用了。  (图10) ### 3、在项目中展示动效模板的效果 创建一个`Main.as`的入口类,并设置为默认应...
来源: Laya2.0_文档 发布时间: 20210715
...position, this.AroundPos); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browse...
来源: Laya_社区 发布时间: 20170714
...position, this.AroundPos); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browse...
来源: Laya_社区 发布时间: 20190224
....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(); } /** * 移动地图视口 */ private mouseMov...
来源: Laya3.0_文档 发布时间: 20251010
...n(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 - (Laya.stage.mo...
来源: Laya2.0_文档 发布时间: 20210715