Dictionaries not working on Android with .Net Standard 2.0

Issue #336 closed
André Gröschel created an issue
  1. Dictionaries are empty on Android with .Net Standard 2.0
  2. In Project Settings choose .Net 4.x as scripting backend and set API compatibility level to .Net Standard 2.0. Derive a script from SerializedMonoBehavior and add a Dictionary. Add some data to it and deploy it to an Android device. While everything works in the Editor, on Android the dictionary is empty. When switching API compatibility level to .NET 4.x everything works fine.
  3. Unity 2018.1.0f2
  4. Odin 1.0.6.8
  5. No
  6. Windows 10

Comments (5)

  1. Tor Esa Vestergaard
    • changed status to open

    Try setting the serialization logging level to "log warnings and errors" in the serialization preferences. With that option set, do you get any messages in the android build, or is it just empty without any logged messages at all?

  2. Tor Esa Vestergaard

    As this is a fairly old issue that never reproduced, I think I'll keep this closed; I've not heard of issues like this for a long time, so I believe it is very likely to be fixed in more recent versions of Odin.

    If anyone experiences this issue, please post here with exact reproduction steps to reopen it :)

  3. Log in to comment