Hi, i use of mouse orbit and attach it to camera. So the camera rotate around the target with mouse movement.
But i want the camera do rotation after release mouse and stop after a while. How cN i do this?
You want to have a Coroutine for that.
IEnumerator RotateCamera(float time) // time in seconds
{
// start rotating camera
yield return new WaitForSeconds(time); // you can hardcode your time in as well
// stop rotating camera
}