Unity 5.5.2f1 to 5.6.1f1 - interpolated strings error?

后端 未结 3 987
逝去的感伤
逝去的感伤 2021-01-12 20:51

I\'ve just updated my Unity version from 5.5.2f1 to 5.6.1f1. Suddenly I get the error:

Feature `interpolated strings\' cannot be used because it is n

3条回答
  •  情歌与酒
    2021-01-12 21:41

    It seems that interpolated strings are still not working after updating. To still use my above mentioned code, I did it the old way.

    Instead of:

    return $"{Timestamp}, {Humidity}, {Temp}, {Light}, {Button}";
    

    I did:

    return string.Format ("{Timestamp}, {Humidity}, {Temp}, {Light}, {Button}", Timestamp, Humidity, Temp, Light, Button);
    

提交回复
热议问题