com.unity.serialization 2.0.0-exp.11

com.unity.serialization

Notes: processedReleased May 9, 2022

Browse versions

PreviousNext

Unity Compatibility

Minimum Unity: 2021.3 (0f1)

Features

  • Add `SerializeValue` API for `SerializationContext` objects for serialization re-entry.
  • Add `DeserializeValue` API for `SerializationContext` objects for serialization re-entry.
  • JSON serialization now supports simple json validation as an option.
  • Add `JsonWriter.WriteValue` override for bool values.
  • `JsonSerialization.ToJson` supports serializing `SerializedObjectView` and `SerializedArrayView`.

📈 Improvements

  • Updated minimum Unity version to `2021.3`.
  • Updated `com.unity.properties` to version `2.0.0-exp.11`.
  • Updated `com.unity.collections` to version `1.1.0`.
  • Updated `com.unity.burst` to version `1.6.1`.
  • Updated `com.unity.jobs` to version `0.11.0-preview.6`.
  • Updated `com.unity.test-framework.performance` to version `2.8.0-preview`.
  • ***Breaking change*** `IJsonAdapter` now pass a context object (`JsonSerializationContext` and `JsonDeserializationContext`). These context objects provide access to the underlying writer or serialized views.
  • ***Breaking change*** `IBinaryAdapter` now pass a context object (`BinarySerializationContext` and `BinaryDeserializationContext`). These context objects provide access to the underlying writer or reader.

🔧 Bug Fixes

  • Fixed an issue where `BinarySerialization` was keeping serialized references until the next `ToBinary` call.
  • Fixed an issue where `JsonSerialization` validation was not detecting open scopes at the end of a stream.
  • JSON serialization now properly adds escape characters to `char` value `\0`.