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.

Question Accesing a table entry via script

Discussion in 'Localization Tools' started by Alvarden, Feb 28, 2023.

  1. Alvarden

    Alvarden

    Joined:
    Feb 22, 2019
    Posts:
    50
    Hello everyone, i'm not very familiar with the Localization package, so i have a question: Is it possible to access any table entry via script? To access its localized string.

    I'm leaving here an example with an image: i want to access this table entry to get its string (based on the current Locale), and fill it in a text UI. And no, i can't use the Localize String Event, because this text UI is at first empty and only when i press a button, it is filled with the localized text.

    Thank you for your time.

    Help With Localization String.png
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,389
  3. Alvarden

    Alvarden

    Joined:
    Feb 22, 2019
    Posts:
    50
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,389
  5. Alvarden

    Alvarden

    Joined:
    Feb 22, 2019
    Posts:
    50
    karl_jones likes this.