using System; using System.Collections.Generic; using Newtonsoft.Json.Converters; using UnityEngine; namespace Newtonsoft.Json.UnityConverters.Configuration { #pragma warning disable CA2235 // Mark all non-serializable fields [Serializable] public sealed class UnityConvertersConfig : ScriptableObject { internal const string PATH = "Assets/Resources/Newtonsoft.Json-for-Unity.Converters.asset"; internal const string PATH_FOR_RESOURCES_LOAD = "Newtonsoft.Json-for-Unity.Converters"; public bool useUnityContractResolver = true; public bool useAllOutsideConverters = true; public List outsideConverters = new List(); public bool useAllUnityConverters = true; public List unityConverters = new List(); public bool useAllJsonNetConverters; public List jsonNetConverters = new List { new ConverterConfig { converterName = typeof(StringEnumConverter).FullName, enabled = true }, new ConverterConfig { converterName = typeof(VersionConverter).FullName, enabled = true }, }; public bool autoSyncConverters = true; } #pragma warning restore CA2235 // Mark all non-serializable fields }