Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  3. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Discussion New contextual menu is not easy to read

Discussion in 'Unity 6 Beta' started by Lars-Steenhoff, Sep 23, 2023.

  1. Neonage

    Neonage

    Joined:
    May 22, 2020
    Posts:
    288
    PixelDough and Ryiah like this.
  2. Neonage

    Neonage

    Joined:
    May 22, 2020
    Posts:
    288
    Got it! :D https://github.com/neon-age/Unify
    Also included my Material Inspector save fix.
    Right now injection points are patched using Harmony.
    It is done for:
    EditorUtility.DisplayPopupMenu (Project browser)
    EditorUtility.DisplayCustomMenuWithSeparators (all GenericMenus, including Enum fields and Hierarchy)
    (there's also GenericMenu.DropDown which does not include Enums)
    GenericMenu.ObjectContextDropDown (Inspector components + material header)
    Also used Unity.InternalAPIEngineBridge assembly for a few internal APIs.

    Styling is a bit broken, but otherwise everything seems to function in order (haven't tested thoroughly tho).
    upload_2024-3-28_9-17-22.png

    upload_2024-3-28_9-18-21.png

    upload_2024-3-28_9-21-15.png

    upload_2024-3-28_9-20-35.png
     
  3. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,434
    Damn sweet, is that thing a patch to reactivate what's already in U6?
    It'd be nice to back port it to production versions of Unity like 2020.
     
  4. Neonage

    Neonage

    Joined:
    May 22, 2020
    Posts:
    288
    No, the code for new menu was removed in 6, and I brought it back, so it could probably be ported to older versions.
     
    assertor likes this.
  5. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,434
    Nice, I'll grab your repo.
    Good thing you're paid by Unity to fix their stuff ;)
     
    assertor likes this.