Search Unity

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:
    61
    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:
    8,281
  3. Alvarden

    Alvarden

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

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,281
  5. Alvarden

    Alvarden

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