Separating two strings

Hi,

I need to separate two string into one. I found old answer but it isn’t working:

var timeBluFormated = Mathf.Floor(timeBlu % 60).ToString + (timeBlu - Mathf.Floor(timeBlu % 60)*60).ToString;

Is showing me this error:

BCE0051: Operator ‘+’ cannot be used with a left hand side of type ‘function(): String’ and a right hand side of type ‘function(): String’.

Could someone please help me?

1 Answer

1

You mean “joining two strings”

You’re nearly there!

var timeBluFormatted = Mathf.Floor(timeBlu % 60).ToString() + (timeBlu - Mathf.Floor(timeBlu % 60)*60).ToString();

Oh, sorry... And thanks for answer :)

–