大约有 3 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0026 秒)
...//调整方向 this.layaMonkey.transform.lookAt(this._tarPosition, this._upVector3, false); //因为资源规格,这里需要旋转180度 this.layaMonkey.transform.rotate(this._rotation2, false, false); //调整位置 Tween.to(this._finalPosition, { x: this._position.x, y: this._position.y, z: thi...
来源: Laya3.0_文档 发布时间: 20230303
...mation动画节点添加动画脚本,添加的代码如下: ... import Vector3 = Laya.Vector3; ... export class AnimationScript extends Laya.AnimatorStateScript { ... private model: Laya.Sprite3D; /**@internal */ setPlayScriptInfo(animator: Laya.Animator | Laya.Animator2D, layerindex: number, pl...
来源: Laya3.0_文档 发布时间: 20240910
... { //注意这里面的属性不要使用到Laya引擎里的类型,比如Vector3这些,是不可以的 Editor.typeRegistry.addTypes([ { name: "MyTestSettingsType", properties: [ { name: "option1", type: "boolean", default: true }, { name: "option2", type: "string", default: "", } ] } ]); Editor....
来源: Laya3.0_文档 发布时间: 20250310