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

Question Can't get release threshold to work with triggers

Discussion in 'Input System' started by Antiquity83, Jun 7, 2021.

  1. Antiquity83

    Antiquity83

    Joined:
    Dec 4, 2020
    Posts:
    21
    Hi, I am using 1.1.0-pre.5 with 2019.4.16f1 and I don't understand how the release threshold is supposed to work. The behavior I want for is for the trigger button to have to be fully released (or close to it) before registering another input. However, no matter where I set the release threshold in the input settings menu, the button seems to release around 0.5 or so. In fact, the default press point doesn't seem to work either. If I set a press interaction with a press point of 1, for example, the trigger has to be almost fully actuated to register, as expected. However, if I check "default" or remove the press interaction, it registers around 0.5 (according to EvaluateMagnitude()) regardless of where I set the default, whether it is higher or lower than 0.5.

    The result of all this is that the triggers register multiple rapid inputs by default. The only way I have been able to prevent this "flickering" is to explicitly set a press point of 1 on all of my button inputs, so that they have to be fully depressed to register. They are still released when partially actuated, but it is harder to register multiple inputs in a row.

    I am upgrading from 1.0.1 and this is the same behavior I had in that version. I know that 1.1.0-pre.2 addressed press and release behavior, but I am seeing the same issues as I did before. I don't understand what I am doing wrong. Setting screens are attached.

    upload_2021-6-7_8-17-56.png


    upload_2021-6-7_8-34-14.png
     
    Last edited: Jun 7, 2021