make a cylinder rotate continuously for y axis unity code example
Example 1: rotation around own axis in unity
transform.RotateAround(transform.position, transform.up, Time.deltaTime * 90f);
Example 2: unity rotate quaternion around axis
RoatationVar = Quaternion.Euler(Vector3.up) * camera.rotation;