Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Unity drag and drop mobile not working

$
0
0
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.

Code (CSharp):
  1.  
  2.     public void OnBeginDrag(PointerEventData eventData)
  3.     {
  4.         startPosition = RectTransform.position;
  5.         myCanvasGroup.blocksRaycasts = false;
  6.         offsetPosition =...
Unity drag and drop mobile not working

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>