LM_Graphics:WorldToScreen(pt, where)

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

Arguments:

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

Return value:

bool returns true if the point is visible on screen, false otherwise
Converts a 2D world position to a screen pixel location. As an example, this can be used to convert between a point in a Moho layer to a screen pixel.
<< Back to LM_Graphics