Arguments are not working in builds

Hello, I am trying to use localization (0.6.1) in my project and when I make build (WebGL and MacOS) of my game, arguments seems to never be set leaving empty fields in my texts while in editor it works well. Here is an example of my use of a localized text. (args in an object[ ])

template.LocalizedText.Arguments = args;
template.LocalizedText.TableReference = "Strings";
template.LocalizedText.TableEntryReference = text;
template.LocalizedText.RegisterChangeHandler((string s) =>
{
      template.Text.text = s;
});
template.LocalizedText.RefreshString();

The translation works well but not the arguments thing. The addressable are correctly built and no error are thrown when running the game.

Hi,
Could you please file a bug report so we can look into it?

Yes, it has been done :slight_smile:

1 Like

same problem here, just wondering if this was fixed?

@coquinounet . The bug report does not seem to have come through to me. Do you have the number so I can track it down?

@karl_jones We were getting a crash for this on one platform, so we were able to figure out how to fix it for us. We had to remove the list formatter from the formatters list in the Localization setting file. Not sure how exactly it relates to the bug but it fixed it for us. Hope that helps you track it down.

What version are you using? There were some issues with SerializeReference causing crashes like this, most(maybe all) should now be fixed on the latest 2019.3

We’re using 2019.3.14f1, package preview-0.6.1.

1 Like

Are you able to file a bug report for the crash?

I can! I’ll put together for you now.

1 Like

@karl_jones submitted now. let me know if you need anything else.

1 Like