Why is this cast to failing?

I have tried so many combinations and in different bps. It just wont work :confused:

What should it be ?

Removing the cast to makes it print string it worked but the widget is not becoming visible.

Sorry, but i didnā€™t understand the problemā€¦ The compiler just tells you that you donā€™t need the ā€œcast to ChatBPā€ node. You can just take the chat BP var->get Chat bar.

yeah I changed that but the widget will not become visible as i tell it to

Have you toggled ā€œIs Variableā€ for the widgets Chat Bar and Chat Log are referencing to? Open the widget blueprint from content browser, select the widget from hierarchy and toggle it from details panel.

yes, if they were not- i would have not been able to get them.

Nothing here is setting the visibility of ChatBP itself, what is the entire widgetā€™s visibility?

I made the chat bar and chat log start hidden, when pressing J this should make them visible.

In another place, once I press enter - it hides it again.

I just cant get this set visibility to visible working.

the fix was to store them in gamestate and call from there