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.
Inherited Members
Namespace: Unity.VisualScripting .FullSerializer
Assembly: Unity.VisualScripting.Core.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Interface)]
public sealed class fsForwardAttribute : 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 |