LocalizeString Component Missing Text.set_text

Environment

  • Unity 2019.3.0b1
  • Windows 10 Pro
  • CPU: I7-6700 CPU @ 3.40GHZ
  • Ram: 16GB

Issue

  1. LocalizeString AddComponent
  2. UpdateString Event is
namespace UnityEngine.Localization.Components
{
    [AddComponentMenu("Localization/Generic/String")]
    public class LocalizeString : LocalizationBehaviour
    {
                [SerializeField]
        LocalizationUnityEvent m_UpdateString = new LocalizationUnityEvent();
    }
}

4933289--478466--주석 2019-09-05 135417.png

I added public keyword before localizationUnityEvent variable as below.

namespace UnityEngine.Localization.Components
{
    [AddComponentMenu("Localization/Generic/String")]
    public class LocalizeString : LocalizationBehaviour
    {
        [SerializeField] public LocalizationUnityEvent m_UpdateString = new LocalizationUnityEvent();
    }
}

4933289--478469--주석 2019-09-05 135717.png

This bug occurs in Unity 2019.3 and later.

I have confirmed that it works fine in Unity 2019.2 version.

That’s strange. Thanks I’ll take a look.

Just to confirm this was a bug with UnityEvent that should now be fixed in recent versions.