ExtendRealityLtd / Malimbe

[Obsolete - No longer maintained] A collection of tools to simplify writing public API components for the Unity software.
MIT License
51 stars 11 forks source link

Create serialized generic subclasses automatically #2

Open bddckr opened 5 years ago

bddckr commented 5 years ago

This is useful for the boilerplate that is UnityEvent<T> subclasses everywhere as well as unsupported types the user defines as well as Dictionary<TKey, TValue> for example.

The documentation should give a quick hint (some links?) on how to ensure the type is serializable as just making non-generic subclasses types for types like Dictionary doesn't make them magically serializable. At least ISerializationCallbackReceiver should be linked.