EditorTools

class in UnityEditor.EditorTools

切换到手册

描述

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

静态变量

activeToolType当前激活的 EditorTool 的类型。

静态函数

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

Events

activeToolChanged添加事件处理程序,以便在激活的工具变化后获得通知。
activeToolChanging添加事件处理程序,以便在激活的工具将变化时获得通知。
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961