- changed status to invalid
OdinMenuEditorWindow not doing SortMenuItemsByName()... Completely?
Issue #358
invalid
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)
-
- Log in to comment
Hey, this is intended behavior since AddAllAssetsAtPath returns an IEnumerable of the added items. For sorting the tree itself, OdinMenuTree.SortMenuItemsByName could be called.