- Home /
Separator in custom Editor MenuItem
How can I add a separator to a menu I create in a MenuItem script? Should I just use a disabled item with "MyMenu/---------" or is there a better way to do it? (And will that even work twice?)
I've had no luck getting separators to work, and since you can't control the order of menu items it would be hard to get the separator where you want it. Would like to know if you figure it out though.
Yeah. I'm From Hare Bay (the one near Gambo). Grew up in Toronto from the time I was 10 though.
Answer by Jake-L · Mar 13, 2011 at 11:57 AM
That's easy, see link text
Thanks Jake! (What is the "false" for? It's not in the docs)
The isValidateFunction parameter is in the docs: http://unity3d.com/support/documentation/ScriptReference/$$anonymous$$enuItem.$$anonymous$$enuItem.html
I've updated the link in my answer...I guess the qato change broke it.
Your answer
Follow this Question
Related Questions
How does the priority of a Editor menuItem change item placement? 5 Answers
How would you go about showing an editor preferences panel in the inspector? 1 Answer
Editor Menu Item open Window 2 Answers
Inspector look changed 0 Answers
GUI works flawlessly in editor, but will not show in standalone build. 1 Answer