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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

318. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

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

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

319. laya.physics.joint.PulleyJoint_API3.0 [ 60%]

... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 ratio ratio: number = 1.5 Defined in laya/physics/joint/PulleyJoint.ts:27 [首次设置有效]两刚体移动距离比率 Optional runInEditor runInEditor: boolean Inherited from Component.runInEdito...

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

320. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

...件会自动刷新,无需代码。例如: //下面是UI进程代码 //获取选中的节点 let node = Editor.scene.getSelection()[0]; //修改节点属性,场景里的对象会自动同步,无需手动 node.props.x = 100; //修改组件属性,场景里的对象会自动同步,无需手...

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