Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


contextType

Describes in which context a VisualElement hierarchy is being run.
Read time 1 minuteLast updated 9 days ago

Definition

ContextType contextType { get; }

Remarks

The context type of a Panel affects how it resolves certain styles and receives specific events. For example, drag-and-drop and command events are only sent to Editor-type Panels.