Odin Serializer

Info

<aside> ⚠️

Odin Serializer does not override basic Unity serialization! You must explicitly specify which fields will be serialized with Odin!

</aside>

Serialization

<aside> ⚠️

Do not serialize one field with both Unity and Odin!

It could lead to subtle errors and duplication of data in your asset.

</aside>

Feature Comparison

Odin Serializer Unity JSON Full Serializer Binary Formatter JSON.NET
Open Source ✅ ❌ ✅ ❌ ✅
Cross Platform ✅ ✅ ✅ ✅ ✅
Out-of-the-box Unity Support ✅ ✅ ✅ ❌ ❌
Supports Unity structs ✅ ✅ ✅ ❌ ❌
Binary Format ✅ ❌ ❌ ✅ ❌
JSON Format ✅ ✅ ✅ ❌ ✅
Merge-friendly data in Unity objects ✅ ❌ ❌ ❌ ❌
Interfaces ✅ ❌ ✅ ✅ ✅
Properties ✅ ❌ ✅ ❌ ✅
Polymorphism ✅ ❌ ✅ ✅ ✅
Generics ✅ ❌ ✅ ✅ ✅
Dictionaries ✅ ❌ ✅ ✅ ✅
Circular References ✅ ❌ ✅ ✅ ✅
Delegates ✅ ❌ ❌ ✅ ❌
Multi-dimensional arrays ✅ ❌ ❌ ✅ ✅
Extendable ✅ ❌ ✅ ✅ ✅
Renaming Members ✅ ✅ ✅ ✅ ✅
Renaming Types ✅ ✅ ✅ ✅ ✅
IL Optimized ✅ ➖ ❌ ❌ ❌
Supports .NET interfaces ✅ ❌ ❌ ✅ ❔
Supports .NET callback attributes ✅ ❌ ❌ ✅ ✅

Usage