Version: 2022.2

EditorToolContextAttributeConstructor

切换到手册
public EditorToolContextAttribute (string displayName, Type targetType);

参数

displayName 要在菜单中显示的名称。
targetType Set to the type that this tool can edit. Set to null if the tool is not a Component tool.

描述

Registers an EditorToolContext as either a global tool context or a Component tool context.