Method WorldToOverlayCoords
| Edit this page View SourceWorldToOverlayCoords(Vector3, int)
Input a World Coordinate and the size of the overlay texture to retrieve the translated overlay coordinates.
Declaration
public Vector2 WorldToOverlayCoords(Vector3 input, int texSize)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | input | World Coordinates |
| int | texSize | Size of the image from your MapOverlay |
Returns
| Type | Description |
|---|---|
| Vector2 | The 2D coordinate space on the MapOverlay |