文字列補間 - Himeyama/Unity_memo GitHub Wiki

$"{変数}"で変数の展開ができる。

for(int i = 0; i < 10; i++){
    Debug.Log($"{i}");
}