Skip to content

格式

typescript
Transform.rotation

所属类: Transform

描述

当前Transform在世界空间中的旋转的四元数。

参数

参数名类型描述

返回值

类型描述
Quaternion世界空间中的旋转的四元数

代码示例

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