Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice

Question Localized String does not contain 'Result'

Discussion in 'Open Projects' started by misunra8, Jun 10, 2021.

  1. misunra8

    misunra8

    Joined:
    Aug 4, 2020
    Posts:
    2
    Hi everyone, I've imported the project recently, and couldn't get over with these errors. It might be my silliness but I'd like to get some help about it.

    I updated preview packages to
    Localization 1.0.0.-pre.9 (I imported everything also under samples tab)
    Tutorial Framework 2.0.0-pre.5
    UI Builder 1.0.0-preview.14

    and I'm using 2020.3.11f1 (also tried 2020.3.7 but results are the same)

    Assets\Scripts\Quests\Editor\LocalizationUtils.cs(63,56): error CS1061: 'string' does not contain a definition for 'Result' and no accessible extension method 'Result' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)

    (Don't mind the first two ones)
    Thanks for support
    upload_2021-6-10_23-19-55.png
     
    Last edited: Jun 10, 2021
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,275
    Hey. There were some changes in 1.0.0-pre.9 with the introduction of the WaitForCompletionSupport.
    GetLocalizedString was renamed to GetLocalizedStringAsync and a new method was added called GetLocalizedString(same name) which now returns the string instead of an Async operation.
    So to fix this issue you could just change the code to be GetLocalizedStringAsync.
     
    misunra8 likes this.
  3. misunra8

    misunra8

    Joined:
    Aug 4, 2020
    Posts:
    2
    Thanks Karl, it seems fixed now :)
     
    karl_jones likes this.
  4. ChemaDmk

    ChemaDmk

    Unity Technologies

    Joined:
    Jan 14, 2020
    Posts:
    65
    Hey @misunra8 we've updated the Localization package to 1.0.0.-pre.9 on the main branch yesterday. If you want, you can continue working with that version.
     
    Last edited: Jun 16, 2021
    karl_jones likes this.