旋度到角度的转换接口是使用 Mathf.Rad2Deg 常量来实现的。

具体的转换方式如下:

float radians = 2 * Mathf.PI; // 旋度值为 2π
float degrees = radians * Mathf.Rad2Deg; // 将旋度转换为角度

Debug.Log(degrees); // 输出 360

在 Unity 中,可以使用 Mathf.Rad2Deg 常量将旋度转换为角度。将旋度值乘以 Mathf.Rad2Deg,即可得到角度值。

Unity 旋度转角度:2π 到 360 度的转换方法