Wanzyee Studio

Custom Newtonsoft.Json.JsonConverter for UnityEngine.RectOffset. More...

Inherits PartialConverter< RectOffset >.

Public Member Functions

override bool CanConvert (Type objectType)
 Determine if the object type is T. More...
 
override object ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 Read the specified properties to the object. More...
 
override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
 Write the specified properties of the object. More...
 

Protected Member Functions

override string[] GetPropertyNames ()
 Get the property names include left, right, top, bottom. More...
 
virtual T CreateInstance ()
 Create the instance for ReadJson() to populate. More...
 

Detailed Description

Custom Newtonsoft.Json.JsonConverter for UnityEngine.RectOffset.

Member Function Documentation

override string [] GetPropertyNames ( )
protectedvirtual

Get the property names include left, right, top, bottom.

Returns
The property names.

Implements PartialConverter< RectOffset >.

virtual T CreateInstance ( )
protectedvirtualinherited

Create the instance for ReadJson() to populate.

Returns
The instance.
override bool CanConvert ( Type  objectType)
inherited

Determine if the object type is T.

Parameters
objectTypeType of the object.
Returns
true if this can convert the specified type; otherwise, false.
override object ReadJson ( JsonReader  reader,
Type  objectType,
object  existingValue,
JsonSerializer  serializer 
)
inherited

Read the specified properties to the object.

Parameters
readerThe Newtonsoft.Json.JsonReader to read from.
objectTypeType of the object.
existingValueThe existing value of object being read.
serializerThe calling serializer.
Returns
The object value.
override void WriteJson ( JsonWriter  writer,
object  value,
JsonSerializer  serializer 
)
inherited

Write the specified properties of the object.

Parameters
writerThe Newtonsoft.Json.JsonWriter to write to.
valueThe value.
serializerThe calling serializer.