Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question NODE input GetTouch index

Discussion in 'Visual Scripting' started by grimakaka, Jul 17, 2023.

  1. grimakaka

    grimakaka

    Joined:
    Jan 21, 2017
    Posts:
    3
    Hi, I'm a newbie! What value should I pass to this node so that the error disappears? I tried a lot, I didn't find any information!

    upload_2023-7-17_20-45-48.png
     
  2. Welfarecheck

    Welfarecheck

    Joined:
    Jun 14, 2020
    Posts:
    98
    It errors because you aren't on a device with touch. You add in the isMobilePlatform to make sure it only runs. To test you will need to build and load on a device.

    upload_2023-7-18_4-50-15.png
     
    grimakaka likes this.
  3. grimakaka

    grimakaka

    Joined:
    Jan 21, 2017
    Posts:
    3
    Thanks! I solved the problem a little differently.

    upload_2023-7-18_15-4-39.png