How do I cast from UMG to an Actor that is not My Character?

I have read about casting for 2 days and just can’t figure this out. I’m hoping somebody can clear up this gap in my knowledge.

So, in order to retrieve variables for my character in my UMG I use the following:

I understand this - and it works.

However, I can’t understand how to do this for an actor that is not my player character.

I have a BP_BuildingBarracks which is a child of BP_MasterBuilding. BP_BuildingBarracks contains data that I need, such as ‘Cost’. I want to display ‘Cost’ in my HUD.

I have no trouble doing this for variables stored in my Player Character, but how do I do this for other BPs? What node do I attach to Object?

204149-unreal+2.png

Thanks in advance

I have now saved the required data in a Struct, and I can pull the values easily into my UMG. Not sure what is best-practice but I’m glad I have something that works!

You need a Instance to Communicate (read/write) alternativly you can use the Get Class Defaults Node if you are just interessted in the default Values.

Blueprint Communication 101