• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 147 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0042 秒)

21. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

...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

22. 请问 layaair2.0的js有没有api可以查询 例如Laya.Script [ 52%]

... 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

23. 3D 鼠标检测 错乱 [ 51%]

... 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

24. 动效模板(JavaScript-LayaAir基础篇(JS)-动画基础) [ 46%]

...侧属性面板中,设置触发播放的事件属性`playEvent`的值为`mousedown`。如图10所示。 ![10](img/10.png)(图10) ### 3、在项目中展示动效模板的效果 创建一个`Mian.js`文件,在index.html中引用。编写以下代码: ```javascript //初始化引擎 Laya.init(13...

来源: Laya2.0_文档 发布时间: 20210715

25. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 46%]

...侧属性面板中,设置触发播放的事件属性`playEvent`的值为`mousedown`。如图10所示。 ![10](img/10.png)(图10) ### 3、在项目中展示动效模板的效果 创建一个`Mian.ts`文件,在index.html中引用。编写以下代码: ```typescript class Main { constructor() { /...

来源: Laya2.0_文档 发布时间: 20210715

26. 动效模板(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 45%]

...侧属性面板中,设置触发播放的事件属性`playEvent`的值为`mousedown`。如图10所示,然后按F12导出UI页面,即可在项目中使用了。 ![图10](img/10.png) (图10) ### 3、在项目中展示动效模板的效果 创建一个`Main.as`的入口类,并设置为默认应...

来源: Laya2.0_文档 发布时间: 20210715

27. 3D中摄像机绕物体旋转该如何实现? [ 44%]

...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

28. 官方案例里摄像机绕物体旋转脚本的问题 [ 44%]

...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

29. TiledMap地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

....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

30. 用LayaAir引擎解析Tiled Map地图(JavaScript-2D进阶篇(JS)-扩展模块) [ 42%]

...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