PDA

View Full Version : Determining token from coordinates



GKEnialb
September 8th, 2022, 00:59
Is there a way to directly determine which token(s) encompass a particular x,y position (anywhere on the token, not just the center)? Currently I loop through all tokens, get their center positions and size, and do the math to determine if it contains the coordinate, but was wondering if there was a more efficient way.

Moon Wizard
September 8th, 2022, 03:58
There is no API to do that.

Regards,
JPG

GKEnialb
September 9th, 2022, 01:11
No worries - I can keep my logic the same. Thanks for the quick response.