Skip to content

Commit 7d68965

Browse files
authored
FIX: ISXB-924 Fixed a variable name scope shadowing issue causing compilation problems on some Unity 2019 LTS. (#1953)
1 parent 4db0e76 commit 7d68965

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Assets/Tests/InputSystem/CorePerformanceTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,15 +828,15 @@ public void Performance_OptimizedControls_EvaluateStaleControlReadsWhenGamepadSt
828828
#endif
829829
return;
830830

831-
void MethodToMeasure(Gamepad gamepad)
831+
void MethodToMeasure(Gamepad g)
832832
{
833833
var value2d = Vector2.zero;
834834

835835
for (var i = 0; i < 1000; ++i)
836836
{
837837
// Make sure state changes are different from previous state so that we mark the controls as
838838
// stale.
839-
InputSystem.QueueStateEvent(gamepad,
839+
InputSystem.QueueStateEvent(g,
840840
new GamepadState
841841
{
842842
leftStick = new Vector2(i / 1000f, i / 1000f),

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ however, it has to be formatted properly to pass verification tests.
2626
- Fixed an issue where adding a `OnScreenStick` to a regular GameObject and entering play-mode would lead to exceptions being generated.
2727
- Fixed InputActionReference issues when domain reloads are disabled [ISXB-601](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-601), [ISXB-718](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-718), [ISXB-900](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-900)
2828
- Fixed a performance issue with many objects using multiple action maps [ISXB-573](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-573).
29+
- Fixed an variable scope shadowing issue causing compilation to fail on Unity 2019 LTS.
2930

3031
### Added
3132
- Added additional device information when logging the error due to exceeding the maximum number of events processed

0 commit comments

Comments
 (0)