Skip to content

Commit f5b872b

Browse files
authored
Merge branch 'develop' into isxb-1356-reset-pointer-singleunifiedpointer-reuse
2 parents 98fe22a + b9153bc commit f5b872b

File tree

11 files changed

+43
-9
lines changed

11 files changed

+43
-9
lines changed

Assets/Samples/InGameHints/InGameHintsActions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
4-
// version 1.13.1
4+
// version 1.13.2
55
// from Assets/Samples/InGameHints/InGameHintsActions.inputactions
66
//
77
// Changes to this file may cause incorrect behavior and will be lost if

Assets/Samples/SimpleDemo/SimpleControls.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
4-
// version 1.13.1
4+
// version 1.13.2
55
// from Assets/Samples/SimpleDemo/SimpleControls.inputactions
66
//
77
// Changes to this file may cause incorrect behavior and will be lost if

Assets/Tests/InputSystem/InputActionCodeGeneratorActions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
4-
// version 1.13.1
4+
// version 1.13.2
55
// from Assets/Tests/InputSystem/InputActionCodeGeneratorActions.inputactions
66
//
77
// Changes to this file may cause incorrect behavior and will be lost if

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ however, it has to be formatted properly to pass verification tests.
1010

1111
## [Unreleased] - yyyy-mm-dd
1212

13+
## [1.13.1] - 2025-02-18
14+
1315
### Fixed
16+
- Fixed a problem with the logic to get the active player settings object that cause an infinit reimport loop. [ISXB-1430](https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-96793)
1417
- Fixed an issue where removing a newly created action in the Asset Editor would cause an exception. [UUM-95693](https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-95693)
1518
- Fixed arrow key navigation of Input Actions after Action rename. [ISXB-1024](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1024)
1619
- Fixed gamepad navigation in UI Toolkit TextField when using InputSystemUIInputModule. [UUM-77364](https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-77364)

Packages/com.unity.inputsystem/InputSystem/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static partial class InputSystem
1616
// Keep this in sync with "Packages/com.unity.inputsystem/package.json".
1717
// NOTE: Unfortunately, System.Version doesn't use semantic versioning so we can't include
1818
// "-preview" suffixes here.
19-
internal const string kAssemblyVersion = "1.13.1";
19+
internal const string kAssemblyVersion = "1.13.2";
2020
internal const string kDocUrl = "https://docs.unity3d.com/Packages/[email protected]";
2121
}
2222
}

Packages/com.unity.inputsystem/InputSystem/Devices/Precompiled/FastKeyboard.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was auto-generated by com.unity.inputsystem:InputLayoutCodeGenerator
4-
// version 1.13.1
4+
// version 1.13.2
55
// from "Keyboard" layout
66
//
77
// Changes to this file may cause incorrect behavior and will be lost if

Packages/com.unity.inputsystem/InputSystem/Devices/Precompiled/FastMouse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was auto-generated by com.unity.inputsystem:InputLayoutCodeGenerator
4-
// version 1.13.1
4+
// version 1.13.2
55
// from "Mouse" layout
66
//
77
// Changes to this file may cause incorrect behavior and will be lost if

Packages/com.unity.inputsystem/InputSystem/Devices/Precompiled/FastTouchscreen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//------------------------------------------------------------------------------
22
// <auto-generated>
33
// This code was auto-generated by com.unity.inputsystem:InputLayoutCodeGenerator
4-
// version 1.13.1
4+
// version 1.13.2
55
// from "Touchscreen" layout
66
//
77
// Changes to this file may cause incorrect behavior and will be lost if

Packages/com.unity.inputsystem/InputSystem/Editor/Settings/EditorPlayerSettingHelpers.cs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
using System.Linq;
44
using UnityEditor;
55

6+
#if UNITY_6000_0_OR_NEWER
7+
using System.Reflection;
8+
using UnityEditor.Build.Profile;
9+
#endif
10+
611
namespace UnityEngine.InputSystem.Editor
712
{
813
internal static class EditorPlayerSettingHelpers
@@ -154,7 +159,33 @@ private static int TupleToActiveInputHandler((bool newSystemEnabled, bool oldSys
154159

155160
private static SerializedProperty GetPropertyOrNull(string name)
156161
{
162+
#if UNITY_6000_0_OR_NEWER
163+
// HOTFIX: the code below works around an issue causing an infinite reimport loop
164+
// this will be replaced by a call to an API in the editor instead of using reflection once it is available
165+
var buildProfileType = typeof(BuildProfile);
166+
var globalPlayerSettingsField = buildProfileType.GetField("s_GlobalPlayerSettings", BindingFlags.Static | BindingFlags.NonPublic);
167+
if (globalPlayerSettingsField == null)
168+
{
169+
Debug.LogError($"Could not find global player settings field in build profile when trying to get property {name}. Please try to update the Input System package.");
170+
return null;
171+
}
172+
var playerSettings = (PlayerSettings)globalPlayerSettingsField.GetValue(null);
173+
var activeBuildProfile = BuildProfile.GetActiveBuildProfile();
174+
if (activeBuildProfile != null)
175+
{
176+
var playerSettingsOverrideField = buildProfileType.GetField("m_PlayerSettings", BindingFlags.Instance | BindingFlags.NonPublic);
177+
if (playerSettingsOverrideField == null)
178+
{
179+
Debug.LogError($"Could not find player settings override field in build profile when trying to get property {name}. Please try to update the Input System package.");
180+
return null;
181+
}
182+
var playerSettingsOverride = (PlayerSettings)playerSettingsOverrideField.GetValue(activeBuildProfile);
183+
if (playerSettingsOverride != null)
184+
playerSettings = playerSettingsOverride;
185+
}
186+
#else
157187
var playerSettings = Resources.FindObjectsOfTypeAll<PlayerSettings>().FirstOrDefault();
188+
#endif
158189
if (playerSettings == null)
159190
return null;
160191
var playerSettingsObject = new SerializedObject(playerSettings);

Packages/com.unity.inputsystem/Tests/TestFixture/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Keep this in sync with "Packages/com.unity.inputsystem/package.json".
55
// NOTE: Unfortunately, System.Version doesn't use semantic versioning so we can't include
66
// "-preview" suffixes here.
7-
[assembly: AssemblyVersion("1.13.1")]
7+
[assembly: AssemblyVersion("1.13.2")]
88
[assembly: InternalsVisibleTo("Unity.InputSystem.Tests.Editor")]
99
[assembly: InternalsVisibleTo("Unity.InputSystem.Tests")]
1010
[assembly: InternalsVisibleTo("Unity.InputSystem.IntegrationTests")]

0 commit comments

Comments
 (0)