Welcome, Guest
Username: Password: Remember me

TOPIC: Objects not localizing in Unity 2018.1 beta

Objects not localizing in Unity 2018.1 beta 1 week 1 day ago #2827

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 986
  • Thank you received: 215
  • Karma: 64
It seems that in the 2018.1 beta, the behavior of the [RuntimeInitializeOnLoadMethod] and [InitializeOnLoad] attributes changed and now it can't be inherited.

I will be releasing a new beta later tomorrow (2.8.4a6) with the a complete fix, but in the meantime, a way to fix it locally is to open each of the targets in the folder Assets\I2\Localization\Scripts\Targets
and change the

and the

it should look like this:
namespace I2.Loc
    public class LocalizeTarget_UnityUI_Text : LocalizeTarget<UnityEngine.UI.Text>
        static LocalizeTarget_UnityUI_Text() { AutoRegister(); }
        [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] static void AutoRegister() { LocalizationManager.RegisterTarget(new LocalizeTargetDesc_Type<Text, LocalizeTarget_UnityUI_Text>() { Name = "Text", Priority = 100 }); }

Hope that helps,
Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
The administrator has disabled public write access.
Time to create page: 0.119 seconds