OnEndDrag() public method

public OnEndDrag ( PointerEventData eventData ) : void
eventData UnityEngine.EventSystems.PointerEventData
return void
Example #1
0
    public void OnEndDrag(PointerEventData eventData)
    {
        Debug.Log("DECK: OnEndDrag");

        dragHandlerScript.OnEndDrag(eventData);

        instantiatedChild = null;
        dragHandlerScript = null;
        //count--;
        //eventData.pointerDrag.transform.SetParent(parentToReturnTo);
        ////instance.transform.SetParent(parentToReturnTo);
        //////instance.GetComponent<CanvasGroup>().blocksRaycasts = true;
        //objects.transform.SetParent(parentToReturnTo);
        //objects.GetComponent<CanvasGroup>().blocksRaycasts = true;
        //transform.localPosition = Vector3.zero;
    }