How can I animate 3D objects within a 2D Sprite?

Hey there.
I’m a newbie in unreal engine and i’m making a game that the characters are 2D and the environment is 3D. I want my character to hold a 3D weapon like a sword and be able to use it like a 3D character. I have been browsing the net for ages but can’t find out how to do this or if it is even possible.

(example video)
https://youtu.be/lwJurL2-f0c?si=Cgbkyoea6WH6BXbw

P.S. Sorry for my English, hope everyone understands what I want to say.

Thanks