大约有 4 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0029 秒)
...{ regClass, property } = Laya; @regClass() class Animal { private _weight: number = 0; @property( { type : Number } ) get weight() : number { return this._weight; } set weight(value: number) { this._weight = value; } } 2.3 是否序列化保存 通过装饰器定义为组件属性后,默认状态...
来源: Laya3.0_文档 发布时间: 20241014
.../ setPlayScriptInfo(animator: Laya.Animator | Laya.Animator2D, layerindex: number, playstate: Laya.AnimatorState | Laya.AnimatorState2D) { ... this.model = animator.owner as Laya.Sprite3D;//得到Cube节点 } ... /** * 动画状态退出时执行。 */ onStateExit(): void { console.log("动画退出...
来源: Laya3.0_文档 发布时间: 20241014
...{ regClass, property } = Laya; @regClass() class Animal { private _weight: number = 0; @property( { type : Number } ) get weight() : number { return this._weight; } set weight(value: number) { this._weight = value; } } 3.2.3 是否序列化保存 通过装饰器定义为组件属性后,默认状...
来源: Laya3.0_文档 发布时间: 20241014
...lic target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public distanceAway: number = 10;//相机与目标的水平距离参数 public smooth: number = 2;//位置平滑移动插值参数值 public camDepthSmooth: number = 20 publ...
来源: Laya3.0_文档 发布时间: 20241014