Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EditorToolContextAttribute

Registers an EditorToolContext as either a global context or a Component context for a specific target type.
Read time 4 minutesLast updated 5 days ago

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.

Inheritance

Inherited Members