Search Unity

Question is there any way to divide touch area with new input system?

Discussion in 'Input System' started by unity_5CC97F84042D82834841, May 10, 2023.

  1. unity_5CC97F84042D82834841

    unity_5CC97F84042D82834841

    Joined:
    Dec 23, 2022
    Posts:
    1
    hello guys.

    i'm developing virtual stick and virtual track ball function for my mobile application.

    virtual stick ui is located at bottom of a screen of which background image is invisible square.

    virtual trackball is not visible but a user can interact the rest of the screen except virtual stick area by dragging.

    when i set the input action and attached on-screen stick component to virtual stick ui game object.

    the result is like that when i drag virtual stick, the virtual track ball also detect the user input.

    i want to divide touch area depending on perpose, but don't know the best way.

    i use unity 2021.3.19f, new input system 1.5.1, MacOs

    Thanks !!