Class JsonConverters.Vector3JsonConverter
- Namespace
- PAC.Extensions
Custom JSON converter for Vector3.
public class JsonConverters.Vector3JsonConverter : JsonConversion.JsonConverter<Vector3, JsonData.List>
- Inheritance
-
JsonConverters.Vector3JsonConverter
- Inherited Members
Methods
FromJson(List)
Attempts to convert the JSON data into a C# object of the given type.
NOTE: JsonConverter has a default implementation for an overload FromJson(JsonData jsonData) that ensures it is of type JsonDataType before calling the specific overload FromJSON(JsonDataType jsonData).
public override Vector3 FromJson(JsonData.List jsonData)
Parameters
Returns
- Vector3
ToJson(Vector3)
Attempts to convert the C# object into JSON data.
public override JsonData.List ToJson(Vector3 vec)
Parameters
vec
Vector3