Recording coordinates while dragging

If you are listening to the drag events on the game object, then the game object itself is the context of the event (this). If you are listening to the Input system, then it’s returned as gameObject in the event.

Not sure what you are assigning as .id or .key, but you might want to use the existing .name, or store things in .data with DataManager.