Version: 2020.3

EditorToolContext

class in UnityEditor.EditorTools

切换到手册

描述

Use this class to implement specialized versions of the built-in transform tools. Built-in transform tools include Move, Rotate, Scale, Rect, and Transform.

公共函数

OnToolGUIImplements any common functionality for the set of manipulation tools available for this context.
ResolveToolReturns the matching EditorTool type for the specified Tool given the context.

受保护的函数

GetEditorToolTypeDefines the EditorTool type for a given Tool.