Quaternion rotation = Quaternion.AngleAxis(30, Vector3.up);
GameObject cube = GameObject.Find("Cube"); Quaternion rotation = Quaternion.AngleAxis(45, Vector3.right); cube.transform.rotation *= rotation;This code finds the game object "Cube" in the scene, creates a quaternion rotation of 45 degrees around the x-axis, and applies it to the cube's transform, rotating it 45 degrees on the x-axis. The Quaternion AngleAxis method is included in the UnityEngine package library.