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

Save data

Discussion in 'Scripting' started by apshel, Oct 20, 2014.

  1. apshel

    apshel

    Joined:
    Sep 20, 2013
    Posts:
    9
    Help please I can not understand save option private var iCurrencyCount:int =
     

    Attached Files:

    • main.js
      File size:
      6.2 KB
      Views:
      675
  2. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,680
    PlayerPrefs
     
  3. apshel

    apshel

    Joined:
    Sep 20, 2013
    Posts:
    9
    I tried, does not work ,somewhere that you do not.
     
  4. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,680
    Code (csharp):
    1. PlayerPrefs.SetInt("someInt", 1);
     
    apshel likes this.