LM_Graphics:WorldToScreen(pt, where)

Version added: before 9.5

Converts a 2D world position to a screen pixel location

ArgumentTypeDescriptionDefaultVer
ptVector22D world position< 9.5
whereVector2Pixel location - filled in by this function< 9.5

Return type (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.
String "WorldToScreen" is found in the following scripts:

Paint Bucket + (by Danfield)

MR Pose Tool (by eugenebabich)

MR Path (by eugenebabich)

SS - Multi Layer Transform Points (by simplsam)

MR Tween Machine (by eugenebabich)

See all...