Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Smart String's local variable references get lost on runtime???

Discussion in 'Localization Tools' started by enaielei, Dec 9, 2021.

  1. enaielei

    enaielei

    Joined:
    Apr 8, 2021
    Posts:
    11

    I swear to God this one's working before. I just took a break and then suddenly these references disappear when I play the game. Restarted Unity, still the same problem.
    After exiting from Play mode, these null references are kept. Is that supposed to happen?
    Localization version is 1.0.5
     
    Last edited: Dec 9, 2021
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,225
    Oh that looks like a bug. Could you file a bug report?
    Maybe something is not getting set dirty...
     
  3. enaielei

    enaielei

    Joined:
    Apr 8, 2021
    Posts:
    11
    You're probably right since I wasn't really able to fix this. I tried to alter the
    Arguments
    on runtime which seems to work for now. Still, it's quite frustrating that I need to set the smart string variables through the script instead of the inspector.
    I noticed that the problem exists if I create an item on the local variables then apply the added item to the base prefab.
    That's when the references cease to exist when in play mode.
     
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,225
    Could you please file a bug report for this? It sounds like it may be a SerializeReference bug
    https://unity3d.com/unity/qa/bug-reporting
     
    Last edited: Dec 10, 2021