File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Assets/Tests/InputSystem/Plugins Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -554,11 +554,8 @@ public void ActionsWithoutUIMap_ShouldNotGenerateWarnings()
554554 public void ActionsWithUIMap_MissingActions_ShouldGenerateWarnings ( )
555555 {
556556 var asset = ProjectWideActionsAsset . CreateDefaultAssetAtPath ( kAssetPath ) ;
557- var uiActionMap = asset . FindActionMap ( "UI" , true ) ;
558- for ( int i = uiActionMap . m_Actions . Length - 1 ; i >= 0 ; i -- )
559- {
560- ArrayHelpers . EraseAt ( ref uiActionMap . m_Actions , uiActionMap . m_Actions . Length - 1 ) ;
561- }
557+ asset . RemoveActionMap ( asset . FindActionMap ( "UI" , throwIfNotFound : true ) ) ;
558+ asset . AddActionMap ( new InputActionMap ( "UI" ) ) ; // An empty UI map should log warnings.
562559
563560 InputSystem . s_Manager . actions = asset ;
564561 Update ( ) ;
You can’t perform that action at this time.
0 commit comments