Dictionaries not working on Android with .Net Standard 2.0

Issue #336 open
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
  5. No
  6. Windows 10

Comments (3)

  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. Log in to comment