Hide
FieldCustomContextMenu

Add a context menu (right click) item for a target. Same as CustomContextMenu except:

  1. When used on an array/list, it will work on every element of the array/list, instead of the array/list itself
  2. When used on an array/list, the callback can optionaly addionally receive a index parameter
  3. Does not require SaintsEditor
  4. Only works on serializable field
using SaintsField; [FieldCustomContextMenu(nameof(Func1), "Custom/Debug")] // use like a CustomContextMenu public int myInt; [FieldCustomContextMenu(nameof(ClickItemRemover), "
quot;
+ nameof(ClickItemRemoverLabel))] public List<string> lis; private void ClickItemRemover(object _, int index) { lis.RemoveAt(index); } private string ClickItemRemoverLabel(string value, int index) =>
quot;Delete
{index}({value})";