unitytips: String interpolation

Since C# 6.0 you can use String interpolation to make code more readable:

The sample lines will result in the same string


The $ special character identifies a string literal as an interpolated string.

String interpolation provides a more readable and convenient syntax to create formatted strings than a string composite formatting feature.

Follow @giacomelli
Tutorials

News

Articles

Labs