Referencing Blueprint Within Another Blueprint Issue
So I will try to explain this the best I can but when answering or considering my question please keep in mind I am an extreme beginner. I will also attempt to use pictures to explain what I am doing. I know a lot of you are probably very experienced and will likely know a better or alternate method of doing what I am attempting to do but what I want to do is figure out why this is not working. Even if it will NEVER work, I don't know why that is and I would like to know.
So all that being said here is the issue:
I recently learned that within a blueprint, like a UMG widget blueprint, you could create a reference to another a blueprint pretty easily, even an actor. All you have to do is click add variable, search for the blueprint, and then create an object reference of it. I was pretty stoked! This meant I could access the variables in another blueprint, and even potentially (I thought) change them!
So I created my reference to the blueprint, an actor with a single boolean variable inside of it, inside of a widget umg blueprint. This boolean would then determine the text of that umg widget. Specifically the widget has one line of text, and if the boolean was true or false it would set a text variable that a text element within the umg was bound to. SO, all that being said and done, before even getting to binding, when I call the actor reference and then from that GET the boolean value, the value is always false. Even if I set within the actor itself the boolean value to true it will always come back false.
I don't know why this is and I am very confused. A reference is not a copy, it's specifically pointing at the actor blueprint that I am 'referencing', and it should be able (and clearly seems) to be able to see that boolean value in there. And yet despite all this it's always returning the wrong value. See attached image for my spaghetti code.
Like I said please try to contain yourselves, I know you are all very smart people (no sarcasm, seriously) but I am trying to figure out this one small problem and like I said if it's completely wrong I'd like to know that. Then you can absolutely blast me with an alternative method :D.
A quick edit: I just wanted to clarify that yes my actor exists in the game world, I've compiled, saved, and set pretty much every variable I could think of to public.
how are you are actually setting the reference? since your working from the widget it makes things a little more complex on how to set the reference. your going to need to set the reference either when the widget is created or sometime during runtime. i cant tell for sure but im guessing that you just set the actor variable to the type of the class your looking to reference.
Follow this question
Once you sign in you will be able to subscribe for any updates here