Skip to content

Commit a6f71c0

Browse files
committed
Revert PlayerInput asset copy for single player
1 parent 964d569 commit a6f71c0

File tree

1 file changed

+0
-13
lines changed
  • Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput

1 file changed

+0
-13
lines changed

Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput/PlayerInput.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -342,14 +342,8 @@ public InputActionAsset actions
342342
UninitializeActions();
343343
}
344344

345-
var didChange = m_Actions != null;
346-
347345
m_Actions = value;
348346

349-
if (didChange || m_Enabled)
350-
// copy action asset for the first player so that the original asset stays untouched
351-
CopyActionAssetAndApplyBindingOverrides();
352-
353347
if (m_Enabled)
354348
{
355349
ClearCaches();
@@ -1810,13 +1804,6 @@ void Reset()
18101804

18111805
#endif
18121806

1813-
private void Awake()
1814-
{
1815-
// If an action asset is assigned copy it to avoid modifying the original asset.
1816-
if (m_Actions != null)
1817-
CopyActionAssetAndApplyBindingOverrides();
1818-
}
1819-
18201807
private void OnEnable()
18211808
{
18221809
m_Enabled = true;

0 commit comments

Comments
 (0)