TooltipEvent
Event sent to find the first VisualElement that displays a tooltip.
Read time 2 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: EventBase<TooltipEvent>
- Implements: IDisposable
public class TooltipEvent : EventBase<TooltipEvent>, IDisposable
Remarks
This event can be used instead of _tooltip to compute tooltips only when they are about to be displayed.
Constructors
Constructor | Description |
|---|---|
| TooltipEvent() | Initializes and returns an instance of TooltipEvent. |
Properties
Property | Description |
|---|---|
| rect | Rectangle of the hovered VisualElement in the panel coordinate system. |
| tooltip | Text to display inside the tooltip box. |
Methods
Method | Description |
|---|---|
| Init | Resets the event members to their initial values. |