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

IDragHandler: How to only drag with a certain button down

$
0
0
I feel the answer is in front of my face but...

How can I only drag an element using IDragHandler if the left mouse button started the event?

Usecase:

Working on an inventory system, have everything pretty much working, however... I want the player to drag around items using the left mouse button and do an alternate action when the right mouse button is clicked (or middle). Anyone have any ideas?

Viewing all articles
Browse latest Browse all 23263

Trending Articles



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