기술 자료

Unity Engine

Unity Engine

EditorToolContextAttribute

Registers an EditorToolContext as either a global context or a Component context for a specific target type.
읽는 시간 4분최근 업데이트: 한 달 전

Definition

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]public class EditorToolContextAttribute : ToolAttribute

Remarks

A Global tool context is always available in the toolbar menu. A Component tool context is only available when the current selection contains a matching target type.

Constructors

Constructor

Description

EditorToolContextAttribute(System.String,System.Type)Registers an EditorToolContext as either a global tool context or a Component tool context.

Properties

Property

Description

targetToolOwnerThe tool owner EditorWindow type that this context is registered for.

Inheritance

Inherited Members