UnityJsonSettingsFactory
Namespace: Shadop.Archmage.Sdk
Factory for creating JsonSerializerSettings pre-configured with Unity vector converters.
Supports: Vector2, Vector3, Vector4, Vector2Int, Vector3Int.
public static class UnityJsonSettingsFactoryInheritance Object → UnityJsonSettingsFactory
Methods
Section titled “Methods”Create(JsonSerializerSettings)
Section titled “Create(JsonSerializerSettings)”Creates JsonSerializerSettings pre-configured with Unity vector converters.
Each vector type serializes to/from a JSON object: {"x": x, "y": y}, {"x": x, "y": y, "z": z}, etc.
public static JsonSerializerSettings Create(JsonSerializerSettings? baseSettings = null)Parameters
Section titled “Parameters”baseSettings JsonSerializerSettings
Optional base settings to clone and extend. If null, new settings are created.
Returns
Section titled “Returns”JsonSerializerSettings
JsonSerializerSettings with Unity vector converters registered.