Reply To: [BUG]Can't add node in unity editor 2021.1.19.

NodeCanvas Forums Support [BUG]Can't add node in unity editor 2021.1.19. Reply To: [BUG]Can't add node in unity editor 2021.1.19.

#15834
pilgrim
Participant

I ran into the same problem. I was able to get it working by replacing lines 355 and 356 of EditorUtils.ContextMenus.cs

from:

var itemField = typeof(GenericMenu).GetField(“menuItems”, BindingFlags.Instance | BindingFlags.NonPublic);

var items = itemField.GetValue(menu) as ArrayList;

to

var itemField = typeof(GenericMenu).GetField(“m_MenuItems”, BindingFlags.Instance | BindingFlags.NonPublic);

var items = itemField.GetValue(menu) as IList;