rotate only one axis unity code example
Example 1: unity rotate around point
transform.RotateAround(point, axis, degrees);
Example 2: unity rotate quaternion around axis
RoatationVar = Quaternion.Euler(Vector3.up) * camera.rotation;
transform.RotateAround(point, axis, degrees);
RoatationVar = Quaternion.Euler(Vector3.up) * camera.rotation;