This class represents the default context for manipulation tools. When GameObjectToolContext is active, manipulation tools affect the transform property of GameObjects in the SceneView Selection.
GetAdditionalToolTypes | Get an additional collection of tools to display in the same category as the built-in transform tools. |
OnActivated | Invoked after this EditorToolContext becomes the active tool context. |
OnToolGUI | Implements any common functionality for the set of manipulation tools available for this context. |
OnWillBeDeactivated | Invoked before this EditorToolContext stops being the active tool context. |
PopulateMenu | Adds menu items to the Scene view context menu. |
ResolveTool | Returns the matching EditorTool type for the specified Tool given the context. |
GetInstanceID | Gets the instance ID of the object. |
ToString | 返回对象的名称。 |
GetEditorToolType | Defines the EditorTool type for a given Tool. |
Destroy | 移除 GameObject、组件或资源。 |
DestroyImmediate | 立即销毁对象 /obj/。强烈建议您改用 Destroy。 |
DontDestroyOnLoad | 在加载新的 Scene 时,请勿销毁 Object。 |
FindAnyObjectByType | Retrieves any active loaded object of Type type. |
FindFirstObjectByType | Retrieves the first active loaded object of Type type. |
FindObjectsByType | Retrieves a list of all loaded objects of Type type. |
Instantiate | 克隆 original 对象并返回克隆对象。 |
CreateInstance | 创建脚本化对象的实例。 |
bool | 该对象是否存在? |
operator != | 比较两个对象是否引用不同的对象。 |
operator == | 比较两个对象引用,判断它们是否引用同一个对象。 |