Put value between words of ui text, using text.text =

the way my game is set up makes it necessary to do it this way.

YourTextComponent.text = string.Format(“my value is {0} other value {1}”, value0, value1);

string.Format will replace {int} (replace the int by the number you want) by the string value of the parameter you will putt as an argument to the function.

So in this example {0} is replaced by the first value which is value0.

{1} is replaced by the second one : value1