Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Load and save problem

Discussion in 'Scripting' started by Neiro1, Jul 29, 2016.

  1. Neiro1

    Neiro1

    Joined:
    Dec 27, 2015
    Posts:
    64
  2. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    @Neiro1

    Hi there,

    check the type of your "nombre" field, it's not int or string but Text.

    You are trying to assign int using GetInt in start to it.

    You shouldn't even think about replacing your UI Text component itself, but just update Text.text string content using value from your "nombre" that is stored in PlayerPrefs.
     
  3. Neiro1

    Neiro1

    Joined:
    Dec 27, 2015
    Posts:
    64
    thans so much
    which should make it work exactly?