Static Mesh Actor start hidden and show on click of a widget button

Hello all,
I want create a simple on of button in a widget menu. Now it is so that I can switch on the the Actor but it is not possible to switch off the actor with the same button.
Regards,
Jochen

1 Like

From the static mesh reference call get visibility, then execute a branch decision that toggles it to visible or not depending on its current state

2 Likes

Thank you very much for your help. Should I do this in the blueprint from Menu widget?

Yes id compliment this wherever the above screenshot is

1 Like

Is it possible that you make screenshot for me? I am very new in Unreal.

I try it so. But it doesn`t work:

your branch condition is always true, so you’re just going into the node to set the mesh visible. You’re never hiding the mesh in this screenshot.

1 Like

Pull off of the static mesh pin and search “visible”, and look for the Boolean return value

1 Like

Thank you all for the help. I pull off the visible in the render setting for the Actor. Is this ok so?

Is it possible that you can help me with some screenshots?

I’ll be back at my computer in a few hours, I’ll post some then

1 Like

i just used a random class from my game to demonstrate the functionality so some of the references may be different. But if you implement this to yours it should work.

1 Like

You could make it even more elegant :nerd_face:

2 Likes

Oh wow!!!
Thank you very much for the help.