How to display text in columns in GUI.Label & Why unity imgui not support special symbol "\r" ?

I was doing IMGUI Label tests and came to the conclusion that it does not support carriage return by special character “\r”.

But if it was be supported in IMGUI it could be displayed as even columns without problems.

For example:

“First column \r\t\t\t data1 \r\t\t\t\t\t data2\r\nMore longer text \r\t\t\t data1 \r\t\t\t\t\t data2\r\nShort \r\t\t\t data1 \r\t\t\t\t\t data2”;

Result:

| tab 1 | tab 2 | tab 3 | tab 4 | tab 5 | tab 6 |
Furst column…data1…data2
More longer text…data1…data2
Short…data1…data2

Similar techniques were used in old terminals, but for some reason this was not taken into account in the Unity.

TextMeshPro will do what you want - except it’s \n for linefeed