gameObject.GetComponentInChildren<TMP_Text>().text = gameObject.GetComponentInChildren<TMP_Text>().text.Replace("#", quantity.ToString());
gameObject.GetComponentInChildren<TMP_Text>().text = gameObject.GetComponentInChildren<TMP_Text>().text.Replace("$", price.ToString());
Looking via the inspector, the text values are exactly what I want, but in the actual runtime, the string I see is “Sell 9 to
Winston’s
7”
Is there a way with Unity or Text Mesh Pro for the component to re-format the linebreak? Or is string.Replace() deprecated?