recttransformutility
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| recttransformutility [2021/06/23 20:29] – created page, added note about underdocumented feature of RectangleContainsScreenPoint gwenpri.me | recttransformutility [2025/01/15 04:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== RectTransformUtility ====== | ====== RectTransformUtility ====== | ||
| - | RectangleContainsScreenPoint | + | |
| + | == RectangleContainsScreenPoint | ||
| When using this method on a RectTransform in a Screenspace Overlay Canvas, pass in null for the camera parameter.((This mimics the functionality of ScreenPointToWorldPointInRectangle but is unmentioned in the official docs as of 6-23-2021)) | When using this method on a RectTransform in a Screenspace Overlay Canvas, pass in null for the camera parameter.((This mimics the functionality of ScreenPointToWorldPointInRectangle but is unmentioned in the official docs as of 6-23-2021)) | ||
| Passing in a camera can return false-negatives. ((Tested in editor, Unity 2020.3.12f1)) | Passing in a camera can return false-negatives. ((Tested in editor, Unity 2020.3.12f1)) | ||
recttransformutility.1624480177.txt.gz · Last modified: 2025/01/15 04:35 (external edit)