File tree Expand file tree Collapse file tree
Assets/Tests/InputSystem/Plugins Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,12 +96,14 @@ public void InputSystemActionAssetIsNotNull()
9696 "Test is invalid since InputSystemProvider actions are not available" ) ;
9797 }
9898
99- // SelectInputActionAsset() only requires a map named "UI" to exist; no specific
100- // actions are needed for the provider lifecycle tests.
99+ // Creates a minimal project-wide asset recognised by SelectInputActionAsset().
100+ // At least one action is required: InputActionMap.enabled is m_EnabledActionsCount > 0,
101+ // so an empty map can never report as enabled.
101102 static InputActionAsset CreateProjectWideAssetWithUIMap ( out InputActionMap uiMap )
102103 {
103104 var asset = ScriptableObject . CreateInstance < InputActionAsset > ( ) ;
104105 uiMap = new InputActionMap ( "UI" ) ;
106+ uiMap . AddAction ( "Point" , InputActionType . PassThrough , "<Mouse>/position" ) ;
105107 asset . AddActionMap ( uiMap ) ;
106108 return asset ;
107109 }
You can’t perform that action at this time.
0 commit comments