FieldCustomContextMenuAdd a context menu (right click) item for a target. Same as CustomContextMenu except:
- When used on an array/list, it will work on every element of the array/list, instead of the array/list itself
- When used on an array/list, the callback can optionaly addionally receive a index parameter
- Does not require
SaintsEditor - 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})";
