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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Passing two interactions with WithInteractions causes error.

Discussion in 'Input System' started by floppycopy, Aug 24, 2022.

  1. floppycopy

    floppycopy

    Joined:
    Sep 17, 2013
    Posts:
    1
    I'm trying to set the interaction of a binding at runtime, however I receive the following error:

    InvalidOperationException: No interaction with name 'tap;slowTap' (mentioned in 'tap;slowTap') has been registered


    The code is the same as the example code in the documentation on interaction, and is the following.

    Code (CSharp):
    1. abilityInputAction.ChangeBinding(0).WithInteractions("tap;slowTap");
    I can add both "tap" and "slowTap" induvidually, but as soon as I try to add them to the same binding, I get the same error.
     
  2. fareyestudio

    fareyestudio

    Joined:
    Jun 12, 2015
    Posts:
    2
    Going thru latest examples has showed me there a lot of errors in the documentation.
    change the ; to a ,