Hide object on press a button in blueprint

Hi, I need help. I want via buttons hide/make visilbe objects.
For example, if I press button 1 then is grupp1.fbx visible and grupp2.fbx and grupp3.fbx hide/invisible. If I press button 2, then is grupp1 and grupp 2 invisible and grupp3 is now visible.
How can I create my blueprint for work?
Thanks

Salutations,

The command you are looking for is Set Visibility | Unreal Engine Documentation

Simply get a reference to mesh component you want to hide and set it’s visibility to false.

For doing this from a button simply make a new UMG Blueprint Widget and create a button within it. Have the above code trigger on the button press event. Here are some great docs to get you started with buttons and how to use them:

1 Like