Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AnhPham authored Feb 4, 2025
1 parent 33fb71a commit 4e02c24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,11 @@ ScreenManager.Set(tooltipName: "Tooltip");
Show the tooltip

```cs
ScreenManager.ShowTooltip(text: "Tooltip Text", anchoredPosition: Vector2.zero, targetY: 100f);
public Transform button;
```

```cs
ScreenManager.ShowTooltip(text: "Tooltip Text", worldPosition: button.position, targetY: 100f);
```

<h3>9. Other useful methods of ScreenManager</h3>
Expand Down

0 comments on commit 4e02c24

Please sign in to comment.