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

Forums 💬 NodeCanvas ⚙️ Support [BUG]Can't add node in unity editor 2021.1.19.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15880
    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>

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

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

          #15882
          juanvanlits
          Participant

            Amazing, this worked

            #15881
            Gavalakis
            Keymaster

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

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