Open allister-beamable opened 1 month ago
we have lots of existing serialization tests, so we could add some more for this inner optional nested thingy
client/Packages/com.beamable/Tests/Runtime/Beamable/Content/Serialization/ClientContentSerializer/SerializeTests.cs
Describe the bug
When the class definition for a piece of Beamable Content includes nested objects, especially nested
Optional<T>
fields, the Unity Editor tooling for editing and displaying content gets messed up.To Reproduce
Steps to reproduce the behavior:
Optional<string>
field.Optional<MyInnerNode>
field.Expected behavior
The Beamable Unity SDK serializes and deserializes nested structures consistently in both "upload" and "download" directions.
Actual behavior
Inner fields end up being unexpectedly null. Something about the unity editor display of the content is wrong.
Metadata