how to close the unity3d?

Hi all…
I made four buttons on the main Level.What should i do to close the whole unity3d when i press one of the buttons?

Application.Quit
static function Quit () : void
Description

Quits the player application. Quit is ignored in the editor or the web player.

you mean the function doesn’t work in the edior?

The function does not work in editor. If you want to exit the editor you must use EditorApplication.Exit(). I think it must be called from Editor or EditorWindow.

?

To close the Editor, the red cross (Windows) at the top right is the fastest. Why would you want to close the editor by this way ?