I’m making a widget with a button and when clicking that button I want it to set the visibility of an object to visible How can I do this?
Hey there @The_DecafEagle75! Assuming UMG (the UI system) using your button to change visibility has a couple of parts:
Creating the widget:
Adding the widget to the screen
(in your player BP):
The reference to the object you want to change visibility (this can be done dozens of ways depending on how you want to pass this reference in. For this example I just found an object. )
The event itself:
This is just a very basic way to toggle visibility on anything. However you’ll need to determine how you want to get the reference to that object. Find Actor is only for single objects that have only one ref in the level (like say a player). I’ll leave tutorials and documentation below to further your growth! Let me know if you have any questions!
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.