Skip to content

格式

typescript
Transform.localRotation

所属类: Transform

描述

相对于父Transform的旋转。

如果当前Transform没有父级,则与本身的Transform相同。

参数

参数名类型描述

返回值

类型描述
Quaternion相对于父Transform的旋转

代码示例

typescript
OnStart(): void {
    let local_rot = this.transform.localRotation;
    Debug.Log(local_rot);
    }