Search Unity

Method to know when first loading a scene?

Discussion in 'iOS and tvOS' started by aerende, Jun 16, 2010.

  1. aerende

    aerende

    Joined:
    Apr 27, 2009
    Posts:
    316
    Is there a method to know when a scene has been loaded for the first time?

    I'd like to know when the Menu scene has been loaded for the first time so that I can use the game defaults for the options. After the user has selected options, I'd like to use the user's options as defaults.

    Is there any easy way to do this?
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    PlayerPrefs lets you specify default values for preferences that don't exist yet. If they do exist, then the saved values are used instead.

    --Eric