Custom contract resolver for Unity objects. The main purpose is to support Unity's SerializeReference attribute. More...
Inherits DefaultContractResolver.
Public Member Functions | |
UnityContractResolver (Dictionary< int, object > ridToObject) | |
Initializes a new instance of the UnityContractResolver class. More... | |
Protected Member Functions | |
override JsonArrayContract | CreateArrayContract (Type objectType) |
override JsonContract | CreateContract (Type objectType) |
override JsonObjectContract | CreateObjectContract (Type objectType) |
override IList< JsonProperty > | CreateProperties (Type type, MemberSerialization memberSerialization) |
override JsonProperty | CreateProperty (MemberInfo member, MemberSerialization memberSerialization) |
override List< MemberInfo > | GetSerializableMembers (Type objectType) |
Custom contract resolver for Unity objects. The main purpose is to support Unity's SerializeReference attribute.
|
inline |
Initializes a new instance of the UnityContractResolver class.
ridToObject | The dictionary mapping resource IDs to objects. |