大约有 9 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0025 秒)
...件时,需要物体使用`addComponent`方法。 (图1) **Script3D** 这是3D世界中的脚本,继承自组件,是组件的一种。该类被定义为 '抽象类' ,不允许实例。该类提供了一系列虚方法。详细使用可以去API中查看([地址](https://layaair....
来源: Laya2.0_文档 发布时间: 20210714
...件时,需要物体使用`addComponent`方法。 (图1) **Script3D** 这是3D世界中的脚本,继承自组件,是组件的一种。该类被定义为 '抽象类' ,不允许实例。该类提供了一系列虚方法。详细使用可以去API中查看([地址](https://layaair....
来源: Laya2.0_文档 发布时间: 20210714
...件时,需要物体使用`addComponent`方法。 (图1) **Script3D** 这是3D世界中的脚本,继承自组件,是组件的一种。该类被定义为 '抽象类' ,不允许实例。该类提供了一系列虚方法。详细使用可以去API中查看([地址](https://layaair....
来源: Laya2.0_文档 发布时间: 20210715
....layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.component.Script3D))。 关于脚本的添加使用这里不做过的讲解,在以往的示例中都有或多或少的使用脚本。关于脚本的官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&catego...
来源: Laya2.0_文档 发布时间: 20210714
....layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.component.Script3D))。 关于脚本的添加使用这里不做过的讲解,在以往的示例中都有或多或少的使用脚本。关于脚本的官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&catego...
来源: Laya2.0_文档 发布时间: 20210715
....layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.component.Script3D))。 关于脚本的添加使用这里不做过的讲解,在以往的示例中都有或多或少的使用脚本。关于脚本的官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&catego...
来源: Laya2.0_文档 发布时间: 20210715
...光脚本 ```typescript export default class LightMoveScript extends Laya.Script3D { //需要操作的光源数组 public lights = []; //光源对应的位置偏移数组 public offsets = []; //光源对应的移动半径数组 public moveRanges = []; public onUpdate(){ var seed = Laya.timer.currTim...
来源: Laya2.0_文档 发布时间: 20210715
...光脚本 ```typescript export default class LightMoveScript extends Laya.Script3D { //需要操作的光源数组 public lights = []; //光源对应的位置偏移数组 public offsets = []; //光源对应的移动半径数组 public moveRanges = []; public onUpdate(){ var seed = Laya.timer.currTim...
来源: Laya2.0_文档 发布时间: 20210715
...讲解: > 移动灯光脚本 ```typescript class LightMoveScript extends Script3D { //需要操作的光源数组 public var lights: Array = []; //光源对应的位置偏移数组 public var offsets: Array = []; //光源对应的移动半径数组 public var moveRanges: Array = []; public functio...
来源: Laya2.0_文档 发布时间: 20210714