SubAssetAttribute

class SubAssetAttribute : PropertyAttribute

Use this attribute on a ScriptableObject's serialized field to make Soda automatically create and maintain a sub asset in each instance of that ScriptableObject class. The serialized field must be in a ScriptableObject class and of a type that derives from ScriptableObject.

  public class PlayerData : ScriptableObject
{
  [SerializeField, SubAsset]
  private GlobalInt health;
}