Check if a RectTransform contains the screen point as seen from the given camera.
The GameObject target.
Screen Point Vector 2
The screenPoint as a Vector2. Leave to none if you want to use the Vector3 alternative
Or Screen Point Vector 3
The screenPoint as a Vector3. Leave to none if you want to use the Vector2 alternative
Normalized Screen Point
Define if screenPoint are expressed as normalized screen coordinates (0-1). Otherwise coordinates are in pixels.
The Camera. For a RectTransform in a Canvas set to Screen Space - Overlay mode, the cam parameter should be set to null explicitly (default). Leave to none and the camera will be the one from EventSystem.current.camera
Repeat every frame
Store the result.
Is Contained Event
Event sent if screenPoint is contained in RectTransform.
Is Not Contained Event
Event sent if screenPoint is NOT contained in RectTransform.