Custom Newtonsoft.Json.JsonConverter
for UnityEngine.Rect
.
More...
Inherits PartialConverter< Rect >.
|
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...
|
|
Custom Newtonsoft.Json.JsonConverter
for UnityEngine.Rect
.
override string [] GetPropertyNames |
( |
| ) |
|
|
protectedvirtual |
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
-
objectType | Type 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
-
reader | The Newtonsoft.Json.JsonReader to read from. |
objectType | Type of the object. |
existingValue | The existing value of object being read. |
serializer | The calling serializer. |
- Returns
- The object value.
override void WriteJson |
( |
JsonWriter |
writer, |
|
|
object |
value, |
|
|
JsonSerializer |
serializer |
|
) |
| |
|
inherited |
Write the specified properties of the object.
- Parameters
-
writer | The Newtonsoft.Json.JsonWriter to write to. |
value | The value. |
serializer | The calling serializer. |