Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Feedback GenericMenu. Add "Sort" method

Discussion in 'Editor & General Support' started by Peter77, Apr 8, 2019.

  1. Peter77


    QA Jesus

    Jun 12, 2013
    It would be quite useful, if you could add a "Sort" method to GenericMenu, that sorts the added GUIContent in alphabetical order.

    I'm doing this pretty much everywhere and having this snippet in GenericMenu itself, would make that way easier.

    Bonus points if you make the Sort method accept an IComparer or similar, to implement custom sorting rules.
    ilusja likes this.