文档

Unity Engine

Unity Engine

EditorToolContextAttribute(string, Type)

Registers an EditorToolContext as either a global tool context or a Component tool context.
阅读时间1 分钟最后更新于 1 个月前

Definition

public EditorToolContextAttribute(string displayName = "", Type targetType = null)

Parameters

displayName

The name to display in menus.

targetType

Set to the type that this tool can edit. Set to null if the tool is not a Component tool.