Rigging for a 2d character with customizable body parts?

I wanted to know if it was possible for a 2d character to be rigged and animated with unreal engine only. My character is going to have the ability to swap out his body parts for others, so doing it with a third-party animation tool will take a very long time. I Paper ZD wont work because that requires you to already have the animations for each variation of the character, so now I’m wondering if I can just rig each 2d part to the unreal engine mannequin rig and then animate it. I could then swap out the parts much easier this way but I don’t know how to start or what to do with this idea. A step by step guide may be useful