unity angles code example
Example 1: changing euler angles unity
transform.eulerAngles = new Vector3(0, 0, 0);
Example 2: get angle between two vectors unity
Vector3 targetDir = target.position - transform.position;
float angle = Vector3.Angle(targetDir, transform.forward);