The use-case I’m looking for: So I have an image in my UI, which is representing my “inventory” which can hold only one item. When picking up something to the inventory you will drop the previous item and pick up the new item (the image in the UI is a representation of your picked up item). When I load the game map level, I add my UI widget as a member variable to my game instance and then add it to the viewport. So if I could access my custom GameInstance class from C++, I could easily access the member variable widget, and then the widgets image and change the brush to represent the image of the new item.
I’ve thought of using
and casting it to my custom class, however, I haven’t found a way to cast to a Blueprint class, is that even possible?