Hello Mohith,
To export the animation to Unreal Engine, please make sure you follow the steps below:
Hope this helped!