Hi there, we have a drag and drop inventory system, which works fine in the editor, however when on mobile, its very inaccurate and pretty much nothing works as expected. The icon is almost never lined up with where your finger is etc.
Here is a sample of the code on the dragable ui image.
Unity drag and drop mobile not working
Here is a sample of the code on the dragable ui image.
Code (CSharp):
- public void OnBeginDrag(PointerEventData eventData)
- {
- startPosition = RectTransform.position;
- myCanvasGroup.blocksRaycasts = false;
- offsetPosition =...