Class fsConfig
Enables some top-level customization of Full Serializer.
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 |