Custom JSON converter for Unity's Vector3 type. Serializes and deserializes Vector3 values as individual x, y, and z components.
More...
|
| override void | WriteJson (JsonWriter writer, Vector3 value, JsonSerializer serializer) |
| | Writes the Vector3 to JSON using separate x, y, and z properties.
|
| |
| override Vector3 | ReadJson (JsonReader reader, Type objectType, Vector3 existingValue, bool hasExistingValue, JsonSerializer serializer) |
| | Reads a Vector3 from JSON by parsing its x, y, and z components.
|
| |
Custom JSON converter for Unity's Vector3 type. Serializes and deserializes Vector3 values as individual x, y, and z components.
◆ ReadJson()
| override Vector3 Backbone::Vector3Converter::ReadJson |
( |
JsonReader | reader, |
|
|
Type | objectType, |
|
|
Vector3 | existingValue, |
|
|
bool | hasExistingValue, |
|
|
JsonSerializer | serializer ) |
Reads a Vector3 from JSON by parsing its x, y, and z components.
- Parameters
-
| reader | The JsonReader to read from. |
| objectType | The type of the object to create. |
| existingValue | An existing value if one exists. |
| hasExistingValue | True if an existing value is provided. |
| serializer | The JsonSerializer instance. |
- Returns
- The deserialized Vector3 value.
◆ WriteJson()
| override void Backbone::Vector3Converter::WriteJson |
( |
JsonWriter | writer, |
|
|
Vector3 | value, |
|
|
JsonSerializer | serializer ) |
Writes the Vector3 to JSON using separate x, y, and z properties.
- Parameters
-
| writer | The JsonWriter to write to. |
| value | The Vector3 value to serialize. |
| serializer | The JsonSerializer instance. |
The documentation for this class was generated from the following file: