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

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

1. 和原生Dom交互 · LayaAir3.4 · 引擎文档 · LAYABOX [ 100%]

...现这种效果。 var data = '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' + '<em>I</em> like ' + '<span style="color:white; te...

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

2. 2D精灵光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 99%]

...tReceive = true; } // 生成一个矩形 private generateRectVerticesAndUV(width: number, height: number): Laya.Mesh2D { const vertices = new Float32Array(4 * 5); const indices = new Uint16Array(2 * 3); let index = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[inde...

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

3. 2D光遮挡器与阴影 · LayaAir3.4 · 引擎文档 · LAYABOX [ 92%]

...tReceive = true; } // 生成一个矩形 private generateRectVerticesAndUV(width: number, height: number): Laya.Mesh2D { const vertices = new Float32Array(4 * 5); const indices = new Uint16Array(2 * 3); let index = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[inde...

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

4. 2D网格渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 82%]

...一个矩形网格的写法, /** * 生成一个矩形2D网格 * @param width 矩形的宽度 * @param height 矩形的高度 */ private generateRectVerticesAndUV(width: number, height: number): Laya.Mesh2D { const vertices = new Float32Array(4 * 5); const indices = new Uint16Array(2 * 3); let inde...

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

5. 3D基础显示对象 · LayaAir3.4 · 引擎文档 · LAYABOX [ 78%]

...建Box网格。 * @param long 半径 * @param height 垂直层数 * @param width 水平层数 * @return */ static createBox(long: number = 1, height: number = 1, width: number = 1): Mesh 可以看到,通过 createBox 方法,可以创建Box网格,而且还可以创建不同的垂直和水平高...

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