Drag multiple gameobjects ?

hi , i have multiple cards in the hand (panel in canvas) , and i can drag any card using (IBeginDragHandler, IDragHandler, IEndDragHandler) , my question is … how can i drag multiple cards (more than 3 go) at the same time ?

@khalidhex

If you change an gameobjects parent it will be in that ‘localspace’,
so if you move the parent all child objects will move to, because their position will stay the same within that localspace.

public GameObject Container = new GameObject("Container");

public GameObject CardOrGameObject;

//moving card or gameobject into container:
CardOrGameObject.transform.parent = Container;   //CardOrGameObject is now a child of Container.

//removing from container: just change parent again