言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Application.Quit

public static function Quit(): void;

Description

アプリケーションを終了します。

エディターやWeb Player では無視されます。 重要: iOSでは殆どの場合、ユーザーの判断でアプリケーションを終了させるべきです。 詳細はApple Technical Page qa1561を御覧ください。

	// Quits the player when the user hits escape
	function Update () {
		if (Input.GetKey ("escape")) {
			Application.Quit();
		}
	}