Method ScreenPointToWorldPointInRectangle
ScreenPointToWorldPointInRectangle(Transform, Vector2, Camera, out Vector3)
Method to convert ScreenPoint to WorldPoint aligned with Rectangle
Declaration
public static bool ScreenPointToWorldPointInRectangle(Transform transform, Vector2 screenPoint, Camera cam, out Vector3 worldPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | transform | |
| Vector2 | screenPoint | |
| Camera | cam | |
| Vector3 | worldPoint |
Returns
| Type | Description |
|---|---|
| bool |