Table of Contents

Method GetSerializedAssetFields

Namespace
Pinwheel.Vista.Graph
Assembly
Pinwheel.Vista.Runtime.dll

GetSerializedAssetFields(Type)

Gets the fields on a node type that should be stored through the graph asset-reference bridge.

public static IEnumerable<FieldInfo> GetSerializedAssetFields(Type type)

Parameters

type Type

The node type to inspect.

Returns

IEnumerable<FieldInfo>

The instance fields marked with SerializeAssetAttribute whose field type derives from UnityEngine.Object.

Remarks

These fields are excluded from the regular graph serializer and are instead stored in Pinwheel.Vista.Graph.GraphAsset.m_objectReferences using a synthetic key composed from node ID and field name.