class in UnityEditor.Experimental.GraphView
The Pill class includes methods for creating and managing a VisualElement that resembles a capsule. The Pill class includes text, an icon, and two optional child VisualElements: one to the left of the pill, and one to the right of the pill.
| highlighted | Returns whether the pill is highlighted. |
| icon | The icon of the pill. |
| left | The VisualElement to the left of the pill. |
| right | The VisualElement to the right of the pill. |
| text | The text of the pill. |
| Pill | Constructs a pill with its optional left and right child VisualElements. |