【问题标题】:cannot convert method grup "tostring"无法转换方法 grup “tostring”
【发布时间】:2021-04-21 17:33:08
【问题描述】:

这是我的代码 GetComponent ().text = PlayerPrefs.GetInt("skor").ToString;

错误:无法将方法 grup "tostring" 转换为非委托类型 "string"

我不知道,为什么?请给我解决这个问题

【问题讨论】:

  • 因为你需要这样称呼它“ToString();”你看到你缺少括号
  • 也只是作为建议......你应该在stackoverflow询问之前搜索谷歌并学习。

标签: unity3d


【解决方案1】:

类型

ToString()

如果您需要这样的答案,我推荐unity scripting api

【讨论】:

    猜你喜欢
    • 2020-01-01
    • 1970-01-01
    • 2021-10-03
    • 1970-01-01
    • 2012-04-21
    • 2011-08-19
    相关资源
    最近更新 更多