EditorGUIUtility.CommandEvent 命令事件

static function CommandEvent (commandName : string) : Event

Description描述

Creates an event

创建一个事件。

var win : EditorWindow;



// Sends a paste event to an EditorWindow, as if Paste was selected from the Edit menu.

//发送一个粘贴事件到编辑器窗口,仿佛从编辑菜单中选择粘贴。

win.SendEvent(EditorGUIUtility.CommandEvent("Paste"));
Page last updated: 2011-7-15