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

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

321. 陀螺仪与加速计 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...,也可以得到包含重力的加速坐标。 ​ change事件的回调函数拥有一个以下参数: acceleration —— AccelerationInfo类型。提供宿主设备相对于地球坐标系的加速信息,其表现形式为定义于陀螺仪章节的主坐标系,单位是m/s^2。 accelerat...

来源: Laya3.0_文档 发布时间: 20251010

322. 陀螺仪与加速计(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 48%]

...也可以得到包含重力的加速坐标。 ​ `change`事件的回调函数拥有一个以下参数: - `acceleration` —— `AccelerationInfo`类型。提供宿主设备相对于地球坐标系的加速信息,其表现形式为定义于陀螺仪章节的主坐标系,单位是`m/s^2`。 - ...

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

323. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...度: ' + percent.toFixed(2) + '%'); } }); // 设置请求完成后的处理函数 xhr.onload = function () { if (xhr.status === 200) { console.log("文件下载完成!"); } else { console.error("请求失败: " + xhr.status); } }; // 设置请求失败的处理函数 xhr.onerror = function () { co...

来源: Laya3.0_文档 发布时间: 20251010

324. laya.d3.core.material.unlit.UnlitTestMaterial_API3.0 [ 46%]

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

325. laya.components.AnimationClip2D_API3.0 [ 46%]

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

326. laya.d3.resource.RenderTexture_API3.0 [ 46%]

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

327. laya.d3.resource.RenderTextureCube_API3.0 [ 46%]

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

328. 3d项目在开发环境下,使用google浏览器版本 62.0.3202.62(正式版本) (64 位),最小化后,再次切出必然崩溃问题。以及资源加载疑问 [ 45%]

...片依然没有从缓存中移除?这个就很纳闷了。 对于clearRes函数为什么不返回一个boolean,让调用者知道是否移除成功呢? lvfy • 2017-10-25 11:45 浏览器webGL奔溃问题,应该是浏览器本身兼容问题,所有有webGL模式的游戏最小化后都...

来源: Laya_社区 发布时间: 20171021

329. WebSocket通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...面详细介绍它的使用方法。 2.1 建立连接的方式 2.1.1 构造函数传参 直接在构造时传入主机地址和端口,即刻尝试连接。 // 注意:host 参数不需要“ws://”前缀,默认就是ws let socket = new Laya.Socket("192.168.1.2", 8899); //如果需要wss安全...

来源: Laya3.0_文档 发布时间: 20251010

330. laya.d3.resource.MulSampleRenderTexture_API3.0 [ 45%]

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