This shows you the differences between two versions of the page.
Last revision Both sides next revision | |||
recttransformutility [2021/06/23 20:29] gwenpri.me created page, added note about underdocumented feature of RectangleContainsScreenPoint |
recttransformutility [2021/06/23 20:29] gwenpri.me d'oh |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== RectTransformUtility ====== | ====== RectTransformUtility ====== | ||
- | 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)) |