Hide Partial of Object and Character While Going Through Portal

Hi,

I am recently creating a portal in my game followed by this video.

My problem is when the character or object goes through the portal, it will suddenly teleport. Part of the object will go behind the portal. Here is my project.

Is there any way that I can hide the part behind the portal? Can I only achieve this by using the blueprint instead of using materials? Cause I need a general way to let the character and object both hide the part behind the portal.

I was thinking like when entering the box collision and in front of the portal, show it, if behind, not rendering the object. But I don’t know how to do this. C++ solution is also fine if I have to go deep into the source code.

I checked this post, but I am not familiar with the material, and I don’t know if I can add the material to other objects or characters’ original material.

Thanks for your help.