OdinMenuEditorWindow not doing SortMenuItemsByName()... Completely?

Issue #358 invalid
Former user created an issue

In an Odin editor menu window I was expecting the following code to sort my whole menu but it didn't.

tree.AddAllAssetsAtPath("", "Data", typeof(Definition), true)
                .SortMenuItemsByName()
                .AddThumbnailIcons();

Here is a gif: https://media.discordapp.net/attachments/440896556971982878/463994382291304449/2018-07-04_11-07-40.gif?width=651&height=500

It might be the intended behavior though... Just a little bit confusing.

Comments (1)

  1. Lucas Schwaner

    Hey, this is intended behavior since AddAllAssetsAtPath returns an IEnumerable of the added items. For sorting the tree itself, OdinMenuTree.SortMenuItemsByName could be called.

  2. Log in to comment