How to get absolute X / Y coordinates for a display object nested in display groups in Corona?

For troubleshooting, how can I print the Absolute coordinates of the displayed object (for example, the image) that was buried in the display groups? (i.e. relative position is not required)

This is relative to the actual screen resolution, so let's say: Xleft, Xright, Ytop, Ybottom coordinate the type of thing.

+3
source share
1 answer

Yup is what you are looking for, object: localToContent ()

+4
source

All Articles