Unity - スクリプティング API: EditorGUIUtility.CommandEvent ­
言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

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

EditorGUIUtility.CommandEvent

public static function CommandEvent(commandName: string): Event;

Description

コマンド名からイベントを作成します

	var win : EditorWindow;

	// Sends a paste event to an EditorWindow, as if Paste was selected from the Edit menu.
	win.SendEvent(EditorGUIUtility.CommandEvent("Paste"));