Setting instance of Public Variable in Widget Blueprint Broken?
I set up an easy scenario which can be understood immediately. When a button is clicked in the Widget blueprint, it will call the custom event “Say Hello” from the BP_MainGame Blueprint, and then a print string node will run.
In order to call the custom event from my BP_MainGame blueprint, I have set up a public object reference variable. (Pic 3) The type has been set as the BP_MainGame blueprint.
From there, when I want to select the instance of my public variable in the details panel, it gives me the option to select it, yet is never set. (Pic 4 & 5) No matter what I try I can’t set the instance of the variable.
Is this a bug? Am I doing something wrong? Please help~
Could you tell me what it is exactly that you are trying to do? If you are simply trying to communicate between the widget and let's say the MyCharacter blueprint you will need to cast. Here is an example of how to get the set up you have working.
This will be placed in your character blueprint
This will be placed in your widget blueprint. To get the "cast to" node to appear you will need to get the player pawn in this case and drag off that pin. If you would like to cast to your player controller you will need to get player controller and so on.
Is this the effect that you are trying to accomplish? I hope this helps.
Make it a great day
answered Nov 06 '14 at 02:46 PM
Rudy Q ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here