UITooltip Class
Tooltip that appears when hovering over UI components. This is metadata about components, not an interactive component itself.
public class UITooltip
Inheritance System.Object → UITooltip
| Properties | |
|---|---|
| BackgroundColor | Background color. |
| BorderColor | Border color. |
| CursorOffset | Offset from mouse cursor. |
| MaxWidth | Maximum width before text wrapping (0 = no wrapping). |
| Padding | Padding around text. |
| ShowDelay | Delay before showing tooltip (in seconds). |
| Text | Tooltip text content. |
| TextColor | Text color. |
| Methods | |
|---|---|
| CalculateSize() | Calculates tooltip size based on text content. |
| OnHoverEnd() | Called by UICanvas when mouse leaves target component. |
| OnHoverStart(Vector2) | Called by UICanvas when mouse hovers over target component. |
| UpdatePosition(Vector2) | Updates tooltip position based on mouse cursor. |