Unity has some built in menu items when you right click an array element in the inspector called “Duplicate Array Element”, “Delete Array Element”, etc.
I simply want to make my own where, for now it will simply Debug.Log the index of the array element that you selected. I’ll figure out the logic later.
It seems like I can’t use MenuItem, ContextMenu, or ContextMenuItem. Am I wrong about this? I would love to be…
How can I add a custom right click menu item to an individual array element in the Unity Editor?