Skip to content

Commit 858f1b7

Browse files
committed
Reset type registration when uninstalling globals to cause side-effects between InputManager instances.
1 parent 5cb4617 commit 858f1b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2177,6 +2177,9 @@ internal void UninstallGlobals()
21772177
InputControlLayout.s_CacheInstance = default;
21782178
InputControlLayout.s_CacheInstanceRef = 0;
21792179

2180+
// Invalidate type registrations
2181+
m_CustomTypesRegistered = false;
2182+
21802183
// Detach from runtime.
21812184
if (m_Runtime != null)
21822185
{
@@ -2277,7 +2280,6 @@ internal struct AvailableDevice
22772280
internal IInputRuntime m_Runtime;
22782281
internal InputMetrics m_Metrics;
22792282
internal InputSettings m_Settings;
2280-
private Func<bool> m_LazyLoadCustomTypes;
22812283

22822284
// Extract as booleans (from m_Settings) because feature check is in the hot path
22832285

0 commit comments

Comments
 (0)