Editor.OnSceneGUI 当场景GUI

function OnSceneGUI () : void

Description描述

Lets the Editor handle an event in the scene view.

让编辑器在场景视图处理一个事件。

In the OnSceneGUI you can do eg. mesh editing, terrain painting or advanced gizmos If call Event.current.Use(), the event will be "eaten" by the editor and not be used by the scene view itself.

如果调用Event.current.Use(),在OnSceneGUI可以做,例如,网格编辑,地形绘制或高级gizmos,该事件将被编辑器“吃掉”并且不能用于场景视图自身。

Page last updated: 2011-6-28