Version: 2023.1

ToolManager

class in UnityEditor.EditorTools

切换到手册

描述

This class manipulates editor tools in the Scene view.

静态变量

activeContextTypeGets the type of EditorToolContext that is currently active. The default value is GameObjectToolContext.
activeToolTypeGets the type of the EditorTool that is currently active.

静态函数

IsActiveContextTest if an EditorToolContext is currently the active tool context.
IsActiveTool测试 EditorTool 当前是否是激活的工具。
RefreshAvailableToolsCall RefreshAvailableTools to rebuild the contents of the Scene View Tools Overlay.
RestorePreviousPersistentTool将上次使用的全局 EditorTool 设置为激活的工具。
RestorePreviousTool将上次使用的 EditorTool 设置为激活的工具。
SetActiveContextSets the active EditorToolContext.
SetActiveTool设置激活的 EditorTool。

Events

activeContextChangedDefines an event handler for when the active EditorToolContext changes.
activeContextChangingDefines an event handler for when the active EditorToolContext will change.
activeToolChangedDefines an event handler for when the active tool changes.
activeToolChangingDefines an event handler for when the active tool changes.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961