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

How to change the building settings at runtime

Discussion in 'Scripting' started by obeatgamer, May 4, 2021.

  1. obeatgamer

    obeatgamer

    Joined:
    Apr 27, 2020
    Posts:
    6
    Hello, my name is Douggy!
    And I am currently developing a game on my own.
    But this game is already quite advanced in some aspects.

    Currently, I am trying to implement a language selection system in the game (2 languages only - Portuguese and English).

    And I would like to know if there is any way to change at runtime, which scenes will be loaded into the game...if the scenes in Portuguese or in English according to the initial choice of the player.

    Initially, I thought of using 2 lists of game scenes 1 for each language button, but I don't know how to pass this information to the game...Would anyone have any help?
     
  2. Madgvox

    Madgvox

    Joined:
    Apr 13, 2014
    Posts:
    1,315
    Unless you are swapping out the entire game depending on whether you're selecting Portugese or English, it makes more sense to use localization techniques instead, such as Unity's localization package. You can also browse Unity's asset store category for localization assets to find one that meets your needs.
     
  3. obeatgamer

    obeatgamer

    Joined:
    Apr 27, 2020
    Posts:
    6
    Thanks a lot for this solution..I'll try it