Search Unity

saving game in unity

Discussion in 'Immediate Mode GUI (IMGUI)' started by flatliner, Jan 21, 2008.

  1. flatliner

    flatliner

    Joined:
    Jan 21, 2008
    Posts:
    15
    Hi folks,

    I have a question, we are creating a game via unity and we are looking for the code regarding saving game data throughout the game for each user.

    Is this possible?
     
  2. jeremyace

    jeremyace

    Joined:
    Oct 12, 2005
    Posts:
    1,661
    You'd have to do it yourself, but yes it is possible using either Unity's built-in playerprefs system, or any of the systems provided by the .NET frameworks (text, binary, xml, etc).

    This won't work in the webplayer for security reasons, so you'd have to get creative for that one.

    (btw, the support or scripting forum would be better than the UnityGUI forum for this question) ;-)

    -Jeremy