We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1af620 commit 1deb9acCopy full SHA for 1deb9ac
Packages/com.unity.inputsystem/InputSystem/Actions/InputAction.cs
@@ -1368,9 +1368,9 @@ public unsafe bool WasReleasedThisFrame()
1368
/// <example>
1369
/// <code>
1370
/// var fire = playerInput.actions["fire"];
1371
- /// if (fire.WasPressed() && fire.IsPressed())
+ /// if (fire.WasPressedThisDynamicUpdate() && fire.IsPressed())
1372
/// StartFiring();
1373
- /// else if (fire.WasReleased())
+ /// else if (fire.WasReleasedThisDynamicUpdate())
1374
/// StopFiring();
1375
/// </code>
1376
/// </example>
0 commit comments