how to rotate a gameobject on the z axis unity code example
Example 1: how to just aet z rotation on transform unity
transform.rotation = Quaternion.Euler(0, 90, 0);
Example 2: unity rotate quaternion around axis
RoatationVar = Quaternion.Euler(Vector3.up) * camera.rotation;