Wanzyee Studio

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

Inherits PartialConverter< Vector4 >.

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 x, y, z, w. More...
 
virtual T CreateInstance ()
 Create the instance for ReadJson() to populate. More...
 

Detailed Description

Custom Newtonsoft.Json.JsonConverter for UnityEngine.Vector4.

Member Function Documentation

override string [] GetPropertyNames ( )
protectedvirtual

Get the property names include x, y, z, w.

Returns
The property names.

Implements PartialConverter< Vector4 >.

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.