Search Unity

  1. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    Dismiss Notice

GenericMenu overwrites prefab context menu

Discussion in 'Immediate Mode GUI (IMGUI)' started by swedishfisk, Mar 18, 2021.

  1. swedishfisk

    swedishfisk

    Joined:
    Oct 14, 2016
    Posts:
    32
    I have a PropertyDrawer that creates a GenericMenu on the label of the property.

    When I rightclick the label my GenericMenu appears, but I can no longer access the prefab context menu. For instance say I have an override on that property, then I can no longer revert that override or commit it, since my GenericMenu has overridden it.

    Is there a way to fix this or work around it? I'd like for my GenericMenu to show up, but not at the cost of the prefab context menu disappearing.
     
  2. OlivierUbi

    OlivierUbi

    Joined:
    Nov 30, 2020
    Posts:
    1
  3. swedishfisk

    swedishfisk

    Joined:
    Oct 14, 2016
    Posts:
    32
unityunity