Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Closerect | The RectTransform to find a point inside. |
cam | The camera associated with the screens space position. |
screenPoint | Screen space position. |
worldPoint | Point in world space. |
bool Returns true if the plane of the RectTransform is hit, regardless of whether the point is inside the rectangle.
Transform a screen space point to a position in world space that is on the plane of the given RectTransform.