OnDrag() public method

public OnDrag ( PointerEventData eventData ) : void
eventData UnityEngine.EventSystems.PointerEventData
return void
示例#1
0
 public void OnDrag(PointerEventData eventData)
 {
     Debug.Log("DECK: On drag");
     ////
     if (instantiatedChild != null)
     {
         dragHandlerScript.OnDrag(eventData);
     }
     ////
     //        transform.position = Camera.main.ScreenToWorldPoint(pos);
     ////instance.transform.position = Camera.main.ScreenToWorldPoint(eventData.position);
     ////instance.transform.position = new Vector3(transform.position.x, transform.position.y, 0);
     //Debug.Log(Camera.main.ScreenToWorldPoint(eventData.position));
     //        transform.position = Camera.main.WorldToScreenPoint(pos);
     //        transform.position = Input.mousePosition;
 }