slowly rotation

hi to all ;) i want to rotate of 90' an object. for do this i use following line :

transform.Rotate(new Vector3(0,0,1),90f);

problem is that i want to see object while rotate. use transform.Rotate i see directly my object rotate but i want see rotate moving. is this possible in some way? ;) thanks a lot ;)

To animate the rotation you need to do it bit by bit over several frames instead of performing the entire rotation in one go.

People usually achieve this by using linear interpolation between their start and end values (0 and 90, in your case). Unity has functions for this, look at Mathf.Lerp:

See the Rotation function here.

Use iTween, maybe? Get it from the Unity Asset Store.

i red documentation about slerp but i not obtain slow rotation.

i try to do :

Transform to = transform;
to.eulerAngles = new Vector3(0,0,90f);
transform.rotation = Quaternion.Slerp(transform.rotation, to.rotation, 0.0001f * Time.deltaTime);

but rotation go always at same speed also if i change 0.0001f :(