How can I cast from an actor to an actor component class?
I'm trying to cast my character BP to an actor component class but it's not able to inherit from it because they don't share a parent class, I assume. Is there any way to do this so I can get variables from the character BP? I'm trying to get a bool from a widget, and I was somehow able to create the widget ui in the actor component, and it recognizes the variables in the widget, but it doesn't detect changes in their values.
I have currently tried casting to the actor component, only getting invalid inheritance messages, and getting all actors of the character class returns none in the editor. Pictures can be provided if needed.
Does the widget need the characters variable information or the actor class or the component?
There are a few different ways, but would need to know more info such including if there are any events or overlaps firing off before needing this info var info...
Here is the simplest, but maybe the least efficient method.
answered Feb 10 '19 at 06:50 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here