Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

MenuItem - Hide from menu bar?

Discussion in 'Scripting' started by duke, May 9, 2014.

  1. duke

    duke

    Joined:
    Jan 10, 2007
    Posts:
    763
    I want to show a context menu in a particular place, and the only way to do that is to reference an existing MenuItem. How do I specify that the MenuItem I create shouldn't be shown in the main menu bar at the top of the Unity Editor?
     
  2. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,716
    Where you want to show it?
     
  3. Loius

    Loius

    Joined:
    Aug 16, 2012
    Posts:
    546
    MenuItem("Assets/Whatever") creates a menu item that's only visible in the right-click menu of the Project view, is that helpful?
     
  4. duke

    duke

    Joined:
    Jan 10, 2007
    Posts:
    763
  5. ericbegue

    ericbegue

    Joined:
    May 31, 2013
    Posts:
    1,353
    Bumping this.
    I would like to do just that as well.
     
  6. van800

    van800

    JetBrains Employee

    Joined:
    May 19, 2016
    Posts:
    71
    Bump. I want to Show/Hide (no just make it disabled) a menuitem.