Interface fsISerializationCallbacks
Extend this interface on your type to receive notifications about serialization/deserialization events. If you don't have access to the type itself, then you can write an fsObjectProcessor instead.
Namespace: Unity.VisualScripting.FullSerializer
Syntax
public interface fsISerializationCallbacks
Methods
OnAfterDeserialize(Type)
Called after deserialization.
Declaration
void OnAfterDeserialize(Type storageType)
Parameters
Type | Name | Description |
---|---|---|
Type | storageType | The field/property type that is storing the instance. |
OnAfterSerialize(Type, ref fsData)
Called after serialization.
Declaration
void OnAfterSerialize(Type storageType, ref fsData data)
Parameters
Type | Name | Description |
---|---|---|
Type | storageType | The field/property type that is storing the instance. |
fsData | data | The data that was serialized. |
OnBeforeDeserialize(Type, ref fsData)
Called before deserialization.
Declaration
void OnBeforeDeserialize(Type storageType, ref fsData data)
Parameters
Type | Name | Description |
---|---|---|
Type | storageType | The field/property type that is storing the instance. |
fsData | data | The data that will be used for deserialization. |
OnBeforeSerialize(Type)
Called before serialization.
Declaration
void OnBeforeSerialize(Type storageType)
Parameters
Type | Name | Description |
---|---|---|
Type | storageType |