RPG-Demo works with errors on 2022.3.1f1 (LTS)

Issue #935 resolved
Vlad Moldovanov created an issue

The essence of the error is that in the OdinMenuTree area, the mouse does not select any element except the very first (see screenshot in attachments). At the same time, it is possible to move to other elements with UpArrow/DownArrow keys.

To check this, I created a new URP project and added Odin Inspector 3.1.12.2 to it. I did not add any other packages. I didn't even touch the scene. Immediately went to Tools/Odin/Demos and ran the RPG Editor.

Updated:

  1. I might add that non-selectable elements are elements that are children (other than the children of the first element in the root). Elements that have been placed in the root are selectable.
  2. My friend tested this problem on Unity 2022.2.21f1 with the same version of the Odin Inspector 3.1.12.2, and he had the same situation with unselectable items. We both use Windows 11.

Updated 2:

This question seems to be related to this code:

        // Add drag handles to items, so they can be easily dragged into the inventory if characters etc...
        tree.EnumerateTree().Where(x => x.Value as Item).ForEach(AddDragHandles);

Because in my code, if I comment the same code - mouse selection starts working. However, in this case, dragging and dropping elements stops working.

Comments (6)

  1. Log in to comment