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
The command you are looking for is https://docs.unrealengine.com/latest/INT/BlueprintAPI/Rendering/SetVisibility/index.html
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: https://docs.unrealengine.com/latest/INT/Engine/UMG/UserGuide/
answered Dec 08 '16 at 04:41 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here