If I have buttons in my screen for a mobile game, but I also want to control camera with touch delta, and have areas in which touch delta shouldn’t work when I start on them (like button areas or other buttons), or let’s say I only want delta to be registered within a certain portion of the screen. What would be the best way to accomplish this with the New Input System? I cannot find anything about touch panels or touch areas in this system. Thanks in advance.
You can write something like this, by the names you can understand what is what.
_inputRotationZone is a RectTransform, in it you specify a zone on the canvas (panel) in which you can read the delta.
if isTouchInRect = true, then the screen was touched in the zone and you can start reading the input
if you need more information here is a video
1 Like
I see. Thank you very much.