Class fsConfig
Enables some top-level customization of Full Serializer.
Inherited Members
Namespace: Unity.VisualScripting.FullSerializer
Assembly: Unity.VisualScripting.Core.dll
Syntax
public class fsConfigFields
CustomDateTimeFormatString
If not null, this string format will be used for DateTime instead of the default one.
Declaration
public string CustomDateTimeFormatStringField Value
| Type | Description | 
|---|---|
| string | 
DefaultMemberSerialization
The default member serialization.
Declaration
public fsMemberSerialization DefaultMemberSerializationField 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 EnablePropertySerializationField Value
| Type | Description | 
|---|---|
| bool | 
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> GetJsonNameFromMemberNameField Value
| Type | Description | 
|---|---|
| Func<string, MemberInfo, string> | 
IgnoreSerializeAttributes
The attributes that will force a field or property to not be serialized.
Declaration
public Type[] IgnoreSerializeAttributesField Value
| Type | Description | 
|---|---|
| Type[] | 
Serialize64BitIntegerAsString
Int64 and UInt64 will be serialized and deserialized as string for compatibility
Declaration
public bool Serialize64BitIntegerAsStringField Value
| Type | Description | 
|---|---|
| bool | 
SerializeAttributes
The attributes that will force a field or property to be serialized.
Declaration
public Type[] SerializeAttributesField 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 SerializeEnumsAsIntegerField Value
| Type | Description | 
|---|---|
| bool | 
SerializeNonAutoProperties
Should the default serialization behaviour include non-auto properties?
Declaration
public bool SerializeNonAutoPropertiesField Value
| Type | Description | 
|---|---|
| bool | 
SerializeNonPublicSetProperties
Should the default serialization behaviour include properties with non-public setters?
Declaration
public bool SerializeNonPublicSetPropertiesField Value
| Type | Description | 
|---|---|
| bool |