I have a cube set up in my level. I want to toggle the visibility of it when the player checks a checkbox in a pause menu.
So far what I keep running into is:
- In the level BP, I can create a reference for the actor and even toggle the visibility of the actor, but not on the event that the checkbox is clicked.
- In the widget BP, I can give the checkbox some sort of functionality (I currently have is set up on a flipflop to toggle master audio on/off), but I can’t create a reference to the actor when I’m in the widget bp.
I’m not a code person, but if I had to guess it seems that the solution would be:
- as soon as the user clicks the checkbox, the cube is hidden
- on game resume, have the level bp run an is valid check to see whether or not the checkbox has been clicked; if yes = hide cube, if no = keep cube visible.
From all the failed google searches I’ve done so far, it feels I’m asking to do the impossible
On a side note: I did accidentally make the checkbox itself disappear once, gave me a good chuckle at my spectacular fail!
Edit: Changed the title for clarification.