大约有 13 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0030 秒)
Laya_社区(4) Laya2.0_文档(3) Laya_示例(1) laya_api(1) Laya3.0_api(1) Laya2.0_示例(1) Laya2.0_api(1) Laya3.0_文档(1)
...ted All Inherited Externals Only exported Menu Globals "laya/device/motion/Accelerator" Accelerator Class Accelerator Accelerator.instance获取唯一的Accelerator引用,请勿调用构造函数。 listen()的回调处理器接受四个参数: acceleration: 表示用户给予设备的加速度...
来源: Laya3.0_api 发布时间: 20231115
...I DocumentationAll Packages | All Classes | Index | Frames No Frames AcceleratorProperties | Methods Packagelaya.device.motionClasspublic class AcceleratorInheritanceAccelerator EventDispatcher Object Accelerator.instance获取唯一的Accelerator引用,请勿调用构造函数。 listen()...
来源: laya_api 发布时间: 20170929
...I DocumentationAll Packages | All Classes | Index | Frames No Frames AcceleratorProperties | Methods Packagelaya.device.motionClasspublic class AcceleratorInheritanceAccelerator EventDispatcher Object Accelerator.instance获取唯一的Accelerator引用,请勿调用构造函数。 listen()...
来源: Laya2.0_api 发布时间: 20190513
...a.device.motion中共有四个类供开发者使用,分别为加速信息AccelerationInfo、加速计Accelerator、陀螺仪Gyroscope、保存旋转信息RotationInfo。本节将详细描述laya.device.motion API的相关内容。 ## 1、陀螺仪 `Gyroscope`通过`change`事件对设备方向...
来源: Laya2.0_文档 发布时间: 20210714
...a.device.motion中共有四个类供开发者使用,分别为加速信息AccelerationInfo、加速计Accelerator、陀螺仪Gyroscope、保存旋转信息RotationInfo。本节将详细描述laya.device.motion API的相关内容。 ## 1、陀螺仪 `Gyroscope`通过`change`事件对设备方向...
来源: Laya2.0_文档 发布时间: 20210714
...a.device.motion中共有四个类供开发者使用,分别为加速信息AccelerationInfo、加速计Accelerator、陀螺仪Gyroscope、保存旋转信息RotationInfo。本节将详细描述laya.device.motion API的相关内容。 1、陀螺仪 Gyroscope通过change事件对设备方向改变...
来源: Laya3.0_文档 发布时间: 20251010
...a.device.motion中共有四个类供开发者使用,分别为加速信息AccelerationInfo、加速计Accelerator、陀螺仪Gyroscope、保存旋转信息RotationInfo。本节将详细描述laya.device.motion API的相关内容。 ## 1、陀螺仪 `Gyroscope`通过`change`事件对设备方向...
来源: Laya2.0_文档 发布时间: 20210715
...scope.instance.on(Laya.Event.CHANGE,this,this.onDeviceorientation); Laya.Accelerator.instance.on(Laya.Event.CHANGE,this,this.onMotoin); 官网陀螺仪和加速计例子中的上面两句运行时都报 Cannot read property 'instance' of undefined 的错误 附件 : --> 2018-04-13 添加评论 免...
来源: Laya_社区 发布时间: 20180413
...rIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var AccelerationInfo = Laya.AccelerationInfo; var Accelerator = Laya.Accelerator; var Point = Laya.Point; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; function Segment(width, height) { Segment.s...
来源: Laya_示例 发布时间: 20251130
... Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Event = Laya.Event, Accelerator = Laya.Accelerator; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode =...
来源: Laya2.0_示例 发布时间: 20251130