LM_Graphics:ScreenToWorld(where, pt)

Version added: before 9.5
Converts a screen pixel location to 2D world coordinates

Arguments:

Name Type Description Default Ver
where Point Pixel location < 9.5
pt Vector2 2D world position - filled in by this function < 9.5

Return value:

void none
Converts a screen pixel location to 2D world coordinates. As an example, this can be used to convert between a mouse click to a location in the current Moho layer.

Search results

Usage of 'ScreenToWorld' is found in the following scripts:

<< Back to LM_Graphics