Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice

Question Best way to prevent press if touched in specific region of screen?

Discussion in 'Input System' started by CDF, Nov 11, 2020.

  1. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,311
    I'd like some of my input actions to prevent an interaction if the users pointer is within a specific region of the screen.

    I'm guessing the best way is using a Custom Interaction?
    or can it be done by using a Custom Processor?

    I don't want to modify the default interaction, whether that be a press, release, hold etc.
    I just want to cancel the action if it was actuated in a specific region of the screen.
     
    MadMojo likes this.
  2. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,311
    How do you even get the position of a pointer using a button action??

    this is so over complicated.

    I want a action to trigger when I press
    I want to examine the position of the press and cancel it if it's outside a region
     
    MadMojo likes this.