I’m trying to expose a variable from a widget to an actor component class but I can’t cast to it because it doesn’t inherit. I tried several methods along with casting the widget to my character BP and creating a new variable, but when I print the boolean to the screen to see if it is detecting changes from that it doesn’t. Is there any way to solve this problem?
One option is to use the Game Instance. Send the variable from your widget there and then have the Actor BP get it from the game instance.
Another option is if you are creating the Widget from the Character BP, then make sure to set a reference to the widget and use that to grab any variables you need from there.
I’ll try the using the game instance, hopefully it’ll work. The class I’m trying to cast to is a component that’s attached to the actor BP. The components are just additional characters and I need a bool from a checkbox in the widget to set their race/class, which in turn sets their stats and atrributes
Thank you!