docs.unity3d.com
    目次を表示する/隠す

    Class fsConfig

    Enables some top-level customization of Full Serializer.

    Inheritance
    Object
    fsConfig
    Namespace: Unity.VisualScripting.FullSerializer
    Syntax
    public class fsConfig

    Fields

    CustomDateTimeFormatString

    If not null, this string format will be used for DateTime instead of the default one.

    Declaration
    public string CustomDateTimeFormatString
    Field Value
    Type Description
    String

    DefaultMemberSerialization

    The default member serialization.

    Declaration
    public fsMemberSerialization DefaultMemberSerialization
    Field Value
    Type Description
    fsMemberSerialization

    EnablePropertySerialization

    If false, then all property serialization support will be disabled

    • even properties explicitly annotated with fsProperty or any other opt-in annotation. Setting this to false means that SerializeNonAutoProperties and SerializeNonPublicSetProperties will be completely ignored.
    Declaration
    public bool EnablePropertySerialization
    Field Value
    Type Description
    Boolean

    GetJsonNameFromMemberName

    Convert a C# field/property name into the key used for the JSON object. For example, you could force all JSON names to lowercase with: fsConfig.GetJsonNameFromMemberName = (name, info) => name.ToLower(); This will only be used when the name is not explicitly specified with fsProperty.

    Declaration
    public Func<string, MemberInfo, string> GetJsonNameFromMemberName
    Field Value
    Type Description
    Func<String, MemberInfo, String>

    IgnoreSerializeAttributes

    The attributes that will force a field or property to not be serialized.

    Declaration
    public Type[] IgnoreSerializeAttributes
    Field Value
    Type Description
    Type[]

    Serialize64BitIntegerAsString

    Int64 and UInt64 will be serialized and deserialized as string for compatibility

    Declaration
    public bool Serialize64BitIntegerAsString
    Field Value
    Type Description
    Boolean

    SerializeAttributes

    The attributes that will force a field or property to be serialized.

    Declaration
    public Type[] SerializeAttributes
    Field Value
    Type Description
    Type[]

    SerializeEnumsAsInteger

    Enums are serialized using their names by default. Setting this to true will serialize them as integers instead.

    Declaration
    public bool SerializeEnumsAsInteger
    Field Value
    Type Description
    Boolean

    SerializeNonAutoProperties

    Should the default serialization behaviour include non-auto properties?

    Declaration
    public bool SerializeNonAutoProperties
    Field Value
    Type Description
    Boolean

    SerializeNonPublicSetProperties

    Should the default serialization behaviour include properties with non-public setters?

    Declaration
    public bool SerializeNonPublicSetProperties
    Field Value
    Type Description
    Boolean

    Extension Methods

    XAnalyserProvider.Analyser(Object, IGraphContext)
    XAnalyserProvider.Analyser<TAnalyser>(Object, IGraphContext)
    XAnalyserProvider.Analysis(Object, IGraphContext)
    XAnalyserProvider.Analysis<TAnalysis>(Object, IGraphContext)
    XAnalyserProvider.Analyser(Object, GraphReference)
    XAnalyserProvider.Analyser<TAnalyser>(Object, GraphReference)
    XAnalyserProvider.Analysis(Object, GraphReference)
    XAnalyserProvider.Analysis<TAnalysis>(Object, GraphReference)
    XDescriptorProvider.Describe(Object)
    XDescriptorProvider.HasDescriptor(Object)
    XDescriptorProvider.Descriptor(Object)
    XDescriptorProvider.Descriptor<TDescriptor>(Object)
    XDescriptorProvider.Description(Object)
    XDescriptorProvider.Description<TDescription>(Object)
    Cloning.Clone(Object, ICloner, Boolean)
    Cloning.Clone<T>(T, ICloner, Boolean)
    Cloning.CloneViaFakeSerialization(Object)
    Cloning.CloneViaFakeSerialization<T>(T)
    ConversionUtility.IsConvertibleTo(Object, Type, Boolean)
    ConversionUtility.IsConvertibleTo<T>(Object, Boolean)
    ConversionUtility.ConvertTo(Object, Type)
    ConversionUtility.ConvertTo<T>(Object)
    TypeUtility.ToShortString(Object, Int32)
    Serialization.CloneViaSerialization<T>(T, Boolean)
    Serialization.CloneViaSerializationInto<TSource, TDestination>(TSource, ref TDestination, Boolean)
    Serialization.Serialize(Object, Boolean)
    LinqUtility.Yield<T>(T)
    UnityObjectUtility.IsUnityNull(Object)
    UnityObjectUtility.ToSafeString(Object)
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)