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?
Thanks in advance