How to hide an object by it's rig in maya animation?


Thanks for this great community and your support.

My question is that I want to hide a rigged object in specific frame like Frame 5 and then unhide it in Frame 20.

As the animation saves on RIG in order to export for game engines, I can not hide a mesh or object itself and it should be done only by the object’s joint.

Btw Visibility property of joint only hide the joint icon and does not the hide the object.

I appreciate if you have any idea how to resolve this matter?
Thank you.