EditorToolOwnerAttribute
Registers an EditorWindow as a tool owner and specifies its default EditorToolContext.
Read time 3 minutesLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEditor.EditorTools
- Assembly: UnityEditor.CoreModule
- Inherits from: Attribute
[AttributeUsage(AttributeTargets.Class, Inherited = false)]public class EditorToolOwnerAttribute : Attribute
Remarks
Tool owner windows can host EditorTools, EditorToolContexts, and tool-related overlays.
Constructors
Constructor | Description |
|---|---|
| EditorToolOwnerAttribute(System.Type) | Registers an EditorWindow as a tool owner with the specified default EditorToolContext. |
Properties
Property | Description |
|---|---|
| defaultContext | The default EditorToolContext type for this tool owner. |