Class fsContext
fsContext stores global metadata that can be used to customize how fsConverters operate during serialization.
Inheritance
object
fsContext
Namespace: Unity.VisualScripting.FullSerializer
Assembly: solution.dll
Syntax
public sealed class fsContext
Methods
Get<T>()
Fetches the context object for the given type.
Declaration
public T Get<T>()
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
Has<T>()
Returns true if there is a context object for the given type.
Declaration
public bool Has<T>()
Returns
| Type | Description |
|---|---|
| bool |
Type Parameters
| Name | Description |
|---|---|
| T |
Reset()
Removes all context objects from the context.
Declaration
public void Reset()
Set<T>(T)
Sets the context object for the given type with the given value.
Declaration
public void Set<T>(T obj)
Parameters
| Type | Name | Description |
|---|---|---|
| T | obj |
Type Parameters
| Name | Description |
|---|---|
| T |