euler to quaternion unity code example
Example 1: changing euler angles unity
transform.eulerAngles = new Vector3(0, 0, 0);
Example 2: angle to quaternion unity
Quaternion rotation = Quaternion.Euler(0, /*the angle*/, 0);
transform.eulerAngles = new Vector3(0, 0, 0);
Quaternion rotation = Quaternion.Euler(0, /*the angle*/, 0);