make a rotating object unity code example
Example 1: how to rotate object unity
public Transform Position; // make reference in inspector
Position.Rotate(x, y, z);
Example 2: unity always rotating object
public float speed = 50.0f;
void Update()
{
transform.Rotate(Vector3.up * speed * Time.deltaTime);
}