Textur Shape -> Cube // Apply
using UnityEngine.EventSystems;
public class dragdrop : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler, IDropHandler // 우클릭 빠른작업 리펙토링 , interfacer구
{
public void OnBeginDrag(PointerEventData eventData)
{
Debug.Log("Begin Drag");
}
public void OnDrag(PointerEventData eventData)
{
transform.position = eventData.position;
Debug.Log("Drag");
}
public void OnDrop(PointerEventData eventData)
{
Debug.Log("Drop");
}
public void OnEndDrag(PointerEventData eventData)
{
Debug.Log("End Drag");
}
}