Search Issue Tracker
Fixed
Fixed in 1.7.7
Votes
0
Found in [Package]
1.7.5
Issue ID
UVSB-1945
Regression
No
1373123 Visual scripting input node randomly receives On Released event from Input System while holding key
*Important Note:* Please check the comments on the original FogBugz ticket.
*Reproducible on:*
* VS version: 1.7.5
* Unity version: 2021.2.0f1
* Platform: Win 10, macOS Big Sur
*How to reproduce:*
1. Open attached project https://editorbugs.unity3d.com/api/v1.0/attachments/ef409859-e28a-4d06-96f4-0906a1eaf530/internal-pinball.zip
2. In Hierarchy find "PullThis" object
3. In Inspector find Script Machine component and click Edit Graph
4. Find "Push The Ball" ​section and notice that at the start is On Released event node
5. Enter Play Mode
6. Hold Space (keep holding) and notice that On Released event gets called after some hold time
7. Observe console when using Space key - it is printing correct events directly from Input System
8. Observe Pinball table plunger in Game view when using Space key
*Actual result:* After 1 second of continuous hold time On Released event is called and plunger is released without releasing the key
*Expected result:* Pinball table plunger is staying retracted while holding space key
*Note from Customer QA:* Hey folks, there is something FPS dependent in how input actions are implemented in visual scripting, can you sanity check in which area the issue is, I suspect input system itself works fine as reported by the user and I need some help to check visual scripting parts. Poke me on slack so we can pair on this.
*Aditional Info from the Forum:*
1. Update from 2021.1.26 to 2021.2.0 and update visual scripting from 1.7.2 to 1.7.5
Pressed work but Hold and Released does not work
update: Upgrade from 2021.2.0 to 2021.2.1
update: Upgrade from 2021.2.1 to 2021.2.2 and 1.7.5 to 1.7.6
!1.png|thumbnail!
!2.png|thumbnail!
2. Pressed Jump(space), then release(space),why the sprint will execute
!3.png|thumbnail!
3. Having the same issue. On Pressed works fine, but when switching to On Hold or On Release it does nothing. Event just not triggered when the actual button is released.
Tested with Gamepad and Keyboard.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ScriptableRenderLoopDraw when rendering a specific VFX in Play Mode
- The script is not renamed in the Project window when renaming and a compilation Error is present
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
- "Unable to get the list of approved APIs." is thrown when testing the App Packages with Windows App Certification Kit
Resolution Note (fix version 1.7.7):
The input system 1.2+ should work correctly when using Visual Scripting 1.7.7 or newer.