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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

How i can update values in array

Discussion in '2D' started by Loud_Lasagna, Dec 6, 2019.

  1. Loud_Lasagna

    Loud_Lasagna

    Joined:
    Oct 24, 2019
    Posts:
    26
    I want to know how i can update values in array between scenes
     
  2. eses

    eses

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

    Define "values in array between scenes" as by default there is no such thing.

    What is between?

    Do you mean you want to keep values from scene a to b?

    And this question has nothing to do with 2D, so why did you ask this here? There are more readers on scripting area for this kind of questions.
     
  3. MisterSkitz

    MisterSkitz

    Joined:
    Sep 2, 2015
    Posts:
    833
    You want to store the values in a file and then initialize on start up.
     
  4. Loud_Lasagna

    Loud_Lasagna

    Joined:
    Oct 24, 2019
    Posts:
    26
    I want to use different values for every scene, but I think I can just do what MisterSkitz said
     
    Last edited: Dec 7, 2019