using UnityEngine;

/// <summary>
/// Use this property on a ScriptableObject type to allow the editors drawing the field to draw an expandable
/// area that allows for changing the values on the object without having to change editor.
/// </summary>
public class ExpandableAttribute : PropertyAttribute {
  // If set, specifies a target property for save/revert scriptableobject logic.
  public string TargetPropertyPath { get; private set; }

  public ExpandableAttribute(string targetPropertyPath = null) {
    TargetPropertyPath = targetPropertyPath;
  }
}
