transform.rotation.eulerangles.y code example Example: changing euler angles unity transform.eulerAngles = new Vector3(0, 0, 0);