unity rotate object z axis code example Example: unity rotate around axis transform.Rotate(axis, degrees);