[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.

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15830
    yjl2832118
    Participant

    I upgrade unity edtitor to 2021.1.19 and found that when I want to add new node in behaviour tree edit window, there will be a null reference bug and the add now window is empty.</span>

    Attachments:
    You must be logged in to view attached files.
    #15833
    juanvanlits
    Participant

    Can confirm, same thing happened here. Imported into a new / empty project and as soon as I right clicked inside a graph, I get the same null reference error

    #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;

    #15836
    juanvanlits
    Participant

    Amazing, this worked

    #15868
    Gavalakis
    Keymaster

    This is also fixed in the latest version.
    Thank you for the fix! 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.