Concat String

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:

  1. From ToText(String) node create an Append Node
  2. Connect the GetAmmoAmount to Append node B
  3. Create an variable of type String named AmmoName in the in blueprint
  4. Compile Blueprint
  5. Add Custom text at the bottom of AmmoName properties (eg. "Ammo: ")
  6. Add AmmoName to blueprint using the get
  7. Connect AmmoName
  8. Compile Blueprint
  9. 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


Privacy & Terms