Hi all when I update a text element in a HUD using this:

((CombatantHUDSetting)ORK.HUDs.Get(5).settings).element[2].information.text[0] = "ExampleString";

When I put this in Start() function, the text updates, but if this executes later mid-game in another function, it does not. Am I doing this right?

  • You're changing the settings with this, i.e. it'd only affect new HUD instances or when updating an already displayed HUD. Also, changes to the settings will not be saved with save games.

    If you want to change texts during game, you can either use multiple HUD elements with display conditions, or use e.g. a string variable in the HUD and change the content of the variable.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.