File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ public InputActionAsset actions
348348
349349 if ( didChange || m_Enabled )
350350 // copy action asset for the first player so that the original asset stays untouched
351- CopyActionAsset ( ) ;
351+ CopyActionAssetAndApplyBindingOverrides ( ) ;
352352
353353 if ( m_Enabled )
354354 {
@@ -1379,7 +1379,7 @@ private void InitializeActions()
13791379 for ( var i = 0 ; i < s_AllActivePlayersCount ; ++ i )
13801380 if ( s_AllActivePlayers [ i ] . m_Actions == m_Actions && s_AllActivePlayers [ i ] != this )
13811381 {
1382- CopyActionAsset ( ) ;
1382+ CopyActionAssetAndApplyBindingOverrides ( ) ;
13831383 break ;
13841384 }
13851385
@@ -1429,7 +1429,7 @@ private void InitializeActions()
14291429 m_ActionsInitialized = true ;
14301430 }
14311431
1432- private void CopyActionAsset ( )
1432+ private void CopyActionAssetAndApplyBindingOverrides ( )
14331433 {
14341434 // duplicate action asset to not operate on the original (as it might be used outside - eg project wide action asset or UIInputModule)
14351435 var oldActions = m_Actions ;
@@ -1814,7 +1814,7 @@ private void Awake()
18141814 {
18151815 // If an action asset is assigned copy it to avoid modifying the original asset.
18161816 if ( m_Actions != null )
1817- CopyActionAsset ( ) ;
1817+ CopyActionAssetAndApplyBindingOverrides ( ) ;
18181818 }
18191819
18201820 private void OnEnable ( )
You can’t perform that action at this time.
0 commit comments