Answer the question
In order to leave comments, you need to log in
IDragHandler for 3d objects?
For some reason it doesn't work for me
public void OnDrag(PointerEventData eventData)
{
eventVector3 = Camera.main.ScreenToWorldPoint(eventData.position);
Debug.Log(eventVector3);
gameObject.transform.position = new Vector3(eventVector3.x, 4.4f, eventVector3.z);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question