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

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

311. laya.gltf.glTFUtils_API3.0 [ 62%]

...essorType): number Defined in laya/gltf/glTFUtils.ts:257 根据数据类型获取分量 Parameters type: glTFAccessorType Returns number Static getAnimationRoot getAnimationRoot(channels: glTFAnimationChannel[]): Sprite3D Defined in laya/gltf/glTFUtils.ts:1485 interna 获取 Animator 根节点 Param...

来源: Laya3.0_api 发布时间: 20231102

312. 自定义2D Shader · LayaAir3.4 · 引擎文档 · LAYABOX [ 62%]

...对应的VS和FS片段标记。 7.2 顶点着色器 在VS片段中,需要获取顶点信息,并计算最终的顶点位置,代码如下所示: #defineGLSL textureVS #define SHADER_NAME Sprite2DTextureShader #include "Sprite2DVertex.glsl"; void main() { vertexInfo info; getVertexInfo(info); v...

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

313. 3D变换 · LayaAir3.4 · 引擎文档 · LAYABOX [ 62%]

... worldMatrix:Matrix4x4:世界矩阵。 getRight(right: Vector3): void:获取向右方向。 getUp(up: Vector3): void:获取向上方向。 getForward(forward: Vector3):获取向前方向。 5. 局部空间与世界空间 局部空间,又称为物体空间,是相对于物体自身的坐...

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

314. laya.d3.component.Animator_API3.0 [ 61%]

... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...

来源: Laya3.0_api 发布时间: 20231102

315. 基础使用与构成 · LayaAir3.4 · 引擎文档 · LAYABOX [ 61%]

...this.xx.CenterY = 0; 3.2 数据源dataSource 在实际开发中,从网络获取的数据有时候与 UI 组件预期的数据结构不完全一致,尤其在处理列表组件时更为常见。此时可以通过设置组件的 dataSource,对原始数据进行结构调整,使其满足列表渲...

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

316. 2D自由形态光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 61%]

...rivate intensity: number = 1.8; // 定义灯光强度 onAwake(): void { // 获取 FreeformLight2D 组件 this.lightComp = this.owner.getComponent(Laya.FreeformLight2D); //灯光的顶点通常建议是在IDE中可视化配置,这里是为了演示如何通过代码动态设置顶点数据,方便...

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

317. 浏览器接口 · LayaAir3.4 · 引擎文档 · LAYABOX [ 61%]

...比如在浏览器运行或者在一些小游戏平台中运行,都需要获取设备信息等等,这些功能的接口,都是通过Laya.Browser 来调用的。Laya.Browser 是浏览器代理类,封装了浏览器及原生 JavaScript 提供的一些功能,也包括小游戏等运行环境...

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

318. laya.physics.joint.JointBase_API3.0 [ 61%]

... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...

来源: Laya3.0_api 发布时间: 20231115

319. laya.d3.core.MeshFilter_API3.0 [ 60%]

... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...

来源: Laya3.0_api 发布时间: 20231115

320. 精灵 · LayaAir3.4 · 引擎文档 · LAYABOX [ 60%]

...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true。示例代码如下: let sprite = new Laya.Sprite(); // 添加到舞台 Laya.stage.addChild(sprite); sprite.autoSize = true; 3.4.4 缓存为静态图像 示例代码如下: let...

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