原文地址:https://support.unity3d.com/hc/en-us/articles/205886936-What-is-CS1503-
症状
你在Console窗口里得到了如下的错误:
error CS1503: Argument `#1’ cannot convert `__’ expression to type `__’
原因
当你尝试把一个“integer”类型的变量赋值给一个“string”类型的变量时,就会引起这个错误。
本例子的错误信息如下:
error CS1503: Argument `#1’ cannot convert `int’ expression to type `string’
解决方案
你可以使用ToString方法把整数转换成字符串。
更多信息
https://msdn.microsoft.com/en-us/library/8zf99ds2(v=vs.90).aspx