Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Discussion Incorrect info in "IInputInteraction interface " documentation

Discussion in 'Input System' started by skrizf, May 25, 2024.

  1. skrizf

    skrizf

    Joined:
    Dec 29, 2020
    Posts:
    6
    https://docs.unity3d.com/Packages/c...nityEngine.InputSystem.IInputInteraction.html

    what's bugging me is the separation operator in the example just below the description (also the syntax in all the examples I've seen so far). here, interactions: “Hold;Press” separation operator (;). unity (in play-mode) gives the error “No IInputInteraction with name ‘Hold;Press’ (mentioned as ‘Hold;Press’) has been registered". the problem is solved when i use ',' instead of ';' but it is specified as ';' in almost all of the document.
    is there a mistake here or am I missing something?

    project version is 2022.3.25f1

    i updated the input system from the manifest file to 1.8.2 (the doc says this input system version is available for versions above 2019.4)

    it doesnt give an error only when entering a single interaction.

    also, the documentation for the InputBinding class clearly states that it is also used for interactions:

    upload_2024-5-25_23-10-50.png
     

    Attached Files: