Combobox string issue

the problems after line 1 in this case are all likely caused from the first line

accessed none trying to read ButtonMenu

you can copy the Button Menu and pass it along to the second screenshot by making it into a function or implementing a blueprint interface

Not an exact answer to your question more of a direction for you to go to understand what you’ve done wrong… the problem here is from the CastTo node, it can’t access the hud in this way so when you get to your CustomEvent there it has no idea what ButtonMenu or ComboString are
i may slightly mis understand what you’ve got going on here if there’s something out of the picture happening but it appears you’ve copied the ButtonMenu and ComboString node after placing it in the Widget Bp

With functions:
not advised but somewhat simpler


With Interface:




Your implementation of this will surely be a bit different, but if you re create this it should give you a decent idea of how Interfaces work and what a CastTo is looking for when it says Object ( hint its an object of that type that you need a ref to… either from an overlap or get player character etc )

Hope this helps ya… at the very least the interface method will give you a way to do it, the “Target” that it asks for is just something that implements the interface

Using the above and this video, you should be able to wrap your head around interfaces and whats going on with passing variables between BPs
Check out this video on Interfaces

1 Like