// Use this for initialization void Start() { Prefs prefs = new Prefs(); GetComponent<InputField>().text = prefs.getText(); }