大约有 76 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0029 秒)
...行,此时所有节点和组件均已创建完毕,此方法只会执行一次 | | onEnable | 组件被启用后执行,比如,节点被添加到舞台后执行 | | onStart | 在第1次执行update之前执行,只会执行一次, | | onUpdate | 每帧更新时执行,尽量不要在这里...
来源: Laya2.0_文档 发布时间: 20210715
...要将move的移动向量重置为零向量。否则会一直基于最后一次设置的向量移动。 代码设置示例如下: const { regClass, property } = Laya; @regClass() export default class DirectMove extends Laya.Script { declare owner: Laya.Sprite3D; private characterController: Laya.C...
来源: Laya3.0_文档 发布时间: 20251010
...ouch = this.scene.input.getTouch(0); //是否为新一次触碰,并未发生移动 if (this.first){ //获取触碰点的位置 this.lastPosition.x = touch._position.x; ...
来源: Laya_社区 发布时间: 20190531
...uch = this._scene.input.getTouch(0); //是否为新一次触碰,并未发生移动 if (this.first){ //获取触碰点的位置 this.lastPosition.x = touch._position.x; ...
来源: Laya_社区 发布时间: 20190531
...uch = this._scene.input.getTouch(0); //是否为新一次触碰,并未发生移动 if (this.first){ //获取触碰点的位置 this.lastPosition.x = touch._position.x; ...
来源: Laya_社区 发布时间: 20190605
...执行,此时所有节点和组件均已创建完毕,此方法只执行一次 * 此方法为虚方法,使用时重写覆盖即可 */ onAwake(): void { this.curpos = new Laya.Vector3(); } /** * 第一次执行update之前执行,只会执行一次 * 此方法为虚方法,使用时重写覆...
来源: Laya3.0_文档 发布时间: 20251010