Class TooltipEvent
Event sent to find the first VisualElement that displays a tooltip.
Inherited Members
Namespace: UnityEngine.UIElements
Syntax
public class TooltipEvent : EventBase<TooltipEvent>
Remarks
This event can be used instead of tooltip to compute tooltips only when they are about to be displayed.
Constructors
TooltipEvent()
Initializes and returns an instance of TooltipEvent.
Declaration
public TooltipEvent()
Properties
rect
Rectangle of the hovered VisualElement in the panel coordinate system.
Declaration
public Rect rect { get; set; }
Property Value
Type | Description |
---|---|
Rect |
tooltip
Text to display inside the tooltip box.
Declaration
public string tooltip { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
Init()
Resets the event members to their initial values.
Declaration
protected override void Init()
Overrides
UnityEngine.UIElements.EventBase<UnityEngine.UIElements.TooltipEvent>.Init()