As part of this lecture I wanted to modify the text to include an label such as “Ammo: 10”.
I was able to do this by done by the following steps:
- From ToText(String) node create an Append Node
- Connect the GetAmmoAmount to Append node B
- Create an variable of type String named AmmoName in the in blueprint
- Compile Blueprint
- Add Custom text at the bottom of AmmoName properties (eg. "Ammo: ")
- Add AmmoName to blueprint using the get
- Connect AmmoName
- Compile Blueprint
- Run game (It all was correct it should appear)
I hope this was useful. I was not able to achieve this via c++, so if anyone know how it would be appreciated