hi
nice job
i am using unity 5.3.5,
it is not working drag drop event for GameObject → 2D Object → Sprite,
but it is working for GameObject → UI → Image.
my c# script is :
using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
public class myDragHandler :MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler{
//Usethisfor initialization
void Start(){
Debug.Log("Start");
}
public void OnBeginDrag(PointerEventData eventData){
Debug.Log("OnBeginDrag");
}
public void OnDrag(PointerEventData eventData){
Debug.Log("OnDrag");
this.transform.position=eventData.position;
}
public void OnEndDrag(PointerEventData eventData){
Debug.Log("OnEndDrag");
}
}
How can I solve my problem?
please Guid me