Я хочу перетащить поле ввода в инспектор, но не могу этого сделать.
Код:
Код: Выделить всё
public InputField inputField;
private const string PlayerNamekey ="PlayerName";
private string PlayerName = null;
m_HighScore = m_Points;
PlayerPrefs.SetInt(HighScoreKey, m_HighScore);
PlayerName = inputField.text;
PlayerPrefs.SetString(PlayerNamekey,PlayerName);
PlayerPrefs.Save();
HighScore.text = $"High Score: {PlayerName}: {m_HighScore}";
Подробнее здесь: https://stackoverflow.com/questions/781 ... nd-display