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

Unity UI - Fallthrough detection? (Drag to pan camera if your input was not processed by the UI etc)

$
0
0
Hey ya'll!

So, say I am working on a mobile game with similar controls to Boom Beach. I have a bunch of UI elements that the user can interact with, and the user can also pan around/pinch and zoom on the map.

Basically, I need my script to capture user touch inputs that have not been processed by the UI. I'd love to receive events like OnClick, OnDrag, etc, just like the UI.

NGUI let me do this by registering an object as the 'fallthrough' object - this object would receive all UI...

Unity UI - Fallthrough detection? (Drag to pan camera if your input was not processed by the UI etc)

Viewing all articles
Browse latest Browse all 23263

Latest Images

Trending Articles



Latest Images

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