Blueprint Interface setup wrong?

This is my first ever real work with blueprints and I’m having an issue getting blueprints to communicate with each other. There must be something simple I’m not getting.

Basically all I want is to have a widget set it self from its hidden state (set by default) to visible whenever I press the spacebar and then have it toggle off when I press the spacebar again. For some reason, when I click play it sets itself from hidden to visible instantly and won’t toggle off.

Here’s my setup:
Canvas visibility bind

BP Interface

And the ThirdPersonCharacter BP which has a variable that keeps track of whether its visible or not and whether to set it back to hidden or visible.

You do not show us the implementation of the interface.

Further, you dont HAVE to store a variable like “isMainMenuShow” outside of the widget as you can read these values from the widget itself.

Show us the implementation of the interface and show us what classes each of the pictures are from. You are calling the TestFunc on self, but self is NOT a widget it seems. I also dont understand why you would use an interface to call a function within the same calss.

Hi there,

I guess you are just overcomplicating things if it is about visibility of your Widget :slight_smile:
There is no need for interfaces to do that.
Try to keep your Widgets in the PlayerController and keep them in a Variable. Makes life easier.

Try this within your PlayerController:

I hope that helps :slight_smile: Marooney

And if you handle your Widgets in your PlayerController you can put your Events/Functions for them in there as well:

99826-showhidewidget.jpg

Since this question is still open, how are you doing with your problem?