unity rotate object once code example Example: unity rotate object over time transform.Rotate( Vector3.up * ( rotationSpeed * Time.deltaTime));