private void Update() { //Add some text and other things to the string builder stringHandler.AddText("Name: "); stringHandler.AddText(characterStats.Name); stringHandler.AddText("\nHealth: "); stringHandler.AddText(characterStats.Health); stringHandler.AddText("\nStrength: "); stringHandler.AddText(characterStats.Strength); stringHandler.AddText("\nMana: "); stringHandler.AddText(characterStats.Mana); //Update the text based on the contents of the string builder UIText.text = stringHandler.GetString(); //Clear the string builder stringHandler.Clear(); }