Photon Quantum 3.0.0

Public Member Functions | Protected Member Functions | List of all members
Quantum.Json.UnityContractResolver Class Reference

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)
 

Detailed Description

Custom contract resolver for Unity objects. The main purpose is to support Unity's SerializeReference attribute.

Constructor & Destructor Documentation

◆ UnityContractResolver()

Quantum.Json.UnityContractResolver.UnityContractResolver ( Dictionary< int, object >  ridToObject)
inline

Initializes a new instance of the UnityContractResolver class.

Parameters
ridToObjectThe dictionary mapping resource IDs to objects.