I’m currently working on a mobile game for a school project but when I have tried to use the input system touch controls I ran into an error. First off, the Input System doesn’t work with Unity Remote which is another problem but, when I built the project with a function to show where the press on the screen took place it was never called while running on the phone.
I know it works because I can use the Touch Simulation script provided by the InputSystem package and it works as intended.
Here is my current code.
void OnTouchscreen(InputValue inputValue)
{
text.text = "Position on screen = " + inputValue.Get<Vector2>();
Debug.Log("Screen Touched Position: " +inputValue.ToString());
}