Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Serializing an object dictionary works in the Unity editor but not in the standalone player #96

Open
synthetic-borealis opened this issue Jul 7, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@synthetic-borealis
Copy link

Description
Serializing a Dictionary<string, object> produces correct results when running inside the Unity editor, but results in an exception when running in a standalone player.

How to reproduce the bug

SerializerConfig configuration = new SerializerConfig();
CerasUnityFormatters.ApplyToConfig(configuration);
configuration.Advanced.EmbedChecksum = true;
Dictionary<string, object> dict = new Dictionary<string, object>();
dict["A"] = Mathf.PI;
dict["B"] = 6;
dict["c"] = "Hello";

CerasSerializer serializer = new CerasSerializer(configuration);
byte[] buffer = serializer.Serialize(dict);

Platform

  • Unity 2021.1.13f
  • .NET Standard 2.0

Additional Information
Player log file: Player.log

@synthetic-borealis synthetic-borealis added the bug Something isn't working label Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants