大约有 358 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0047 秒)
...,也可以得到包含重力的加速坐标。 change事件的回调函数拥有一个以下参数: acceleration —— AccelerationInfo类型。提供宿主设备相对于地球坐标系的加速信息,其表现形式为定义于陀螺仪章节的主坐标系,单位是m/s^2。 accelerat...
来源: Laya3.0_文档 发布时间: 20251010
...也可以得到包含重力的加速坐标。 `change`事件的回调函数拥有一个以下参数: - `acceleration` —— `AccelerationInfo`类型。提供宿主设备相对于地球坐标系的加速信息,其表现形式为定义于陀螺仪章节的主坐标系,单位是`m/s^2`。 - ...
来源: Laya2.0_文档 发布时间: 20210715
...度: ' + percent.toFixed(2) + '%'); } }); // 设置请求完成后的处理函数 xhr.onload = function () { if (xhr.status === 200) { console.log("文件下载完成!"); } else { console.error("请求失败: " + xhr.status); } }; // 设置请求失败的处理函数 xhr.onerror = function () { co...
来源: Laya3.0_文档 发布时间: 20251010
... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...
来源: Laya3.0_api 发布时间: 20231102
... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...
来源: Laya3.0_api 发布时间: 20231115
... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...
来源: Laya3.0_api 发布时间: 20231102
... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...
来源: Laya3.0_api 发布时间: 20231102
...片依然没有从缓存中移除?这个就很纳闷了。 对于clearRes函数为什么不返回一个boolean值,让调用者知道是否移除成功呢? lvfy • 2017-10-25 11:45 浏览器webGL奔溃问题,应该是浏览器本身兼容问题,所有有webGL模式的游戏最小化后都...
来源: Laya_社区 发布时间: 20171021
...面详细介绍它的使用方法。 2.1 建立连接的方式 2.1.1 构造函数传参 直接在构造时传入主机地址和端口,即刻尝试连接。 // 注意:host 参数不需要“ws://”前缀,默认就是ws let socket = new Laya.Socket("192.168.1.2", 8899); //如果需要wss安全...
来源: Laya3.0_文档 发布时间: 20251010
... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...
来源: Laya3.0_api 发布时间: 20231102