Farrukh Sajjad
Farrukh Sajjad

Reputation: 353

I have disabled multi touch but still not working unity

I have disabled multitouch but still, when I place second finger on the screen my joystick snaps to the second finger position.

public class GameManager : MonoBehaviour
{
    private void Awake()
    {
        Input.multiTouchEnabled = false;
    }
}

I am using variable joystick from free joystick pack.

Upvotes: 1

Views: 1795

Answers (1)

Tamer Nasser
Tamer Nasser

Reputation: 199

public class GameManager : MonoBehaviour
{
    private void Awake()
    {
        Input.multiTouchEnabled = false;
    }
}

That would work only if the app was installed on the device, it will not work on the editor and not even using Unity remote, since Unity remote streams your game only and passes some parameters while streaming.

For more info about Unity Remote: Unity Manual - Unity Remote

Upvotes: 3

Related Questions