How to able to turn off mesh on UE4?

This is the sample mesh I made on Maya 2019:

IMGUR: Basic 3D Wall Mesh

My purpose is to be able to turn off the top part of this wall so users can have visibility on certain areas. How can I turn off certain part of the mesh? The goals is either player presses a button or triggering volume then top portion is turned off.

So when you Import you have two static meshes? Just add Them to a BP. Then you can toggle the hiddenInGame flag of each Mesh.

Easiest way I can initially think to make that do what you want is…

  1. Make sure that the two wall pieces are separate static mesh components in the same blueprint actor.

  2. Have a third component for collision that extends outwards(So that the character player can walk into it).

  3. Set an Event in the collision object for OnComponentBeginOverlap and OnComponentEndOverlap, and use those to hide or display your top static mesh part of the wall.

If needed you can extend that functionality to included a button press.