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.

(p.s. are you really a Newf? I grew up in NS ...)

Yeah. I'm From Hare Bay (the one near Gambo). Grew up in Toronto from the time I was 10 though.

1 Answer

1

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/MenuItem.MenuItem.html

The link seems to be broken! :(

I've updated the link in my answer...I guess the qato change broke it.

Link is still broken