Version: 2020.1

EditorTools

class in UnityEditor.EditorTools

切换到手册

描述

此类用于操作 Scene 视图中的编辑器工具。

静态变量

activeToolType当前激活的 EditorTool 的类型。

静态函数

IsActiveTool测试 EditorTool 当前是否是激活的工具。
RestorePreviousPersistentTool将上次使用的全局 EditorTool 设置为激活的工具。
RestorePreviousTool将上次使用的 EditorTool 设置为激活的工具。
SetActiveTool设置激活的 EditorTool。

Events

activeToolChanged添加事件处理程序,以便在激活的工具变化后获得通知。
activeToolChanging添加事件处理程序,以便在激活的工具将变化时获得通知。

Did you find this page useful? Please give it a rating: