Class fsForwardAttribute
This allows you to forward serialization of an object to one of its
members. For example,
[fsForward("Values")]
struct Wrapper {
public int[] Values;
}
Then Wrapper will be serialized into a JSON array of integers. It will
be as if Wrapper doesn't exist.
Namespace: Unity.VisualScripting.FullSerializer
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface)]
public sealed class fsForwardAttribute : Attribute, _Attribute
Constructors
fsForwardAttribute(String)
Forward object serialization to an instance member. See class comment.
Declaration
public fsForwardAttribute(string memberName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | memberName | The name of the member that we should serialize this object as. |
Fields
MemberName
The name of the member we should serialize as.
Declaration
public string MemberName
Field Value
| Type | Description |
|---|---|
| String |