File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Assets/Tests/InputSystem/Plugins Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -159,13 +159,19 @@ public IEnumerator PointerExitChildShouldFullyExit()
159
159
160
160
[ UnityTest ]
161
161
[ Description ( "Regression test for https://jira.unity3d.com/browse/ISXB-1493" ) ]
162
- public IEnumerator DisablingDoesNotResetActions ( )
162
+ public IEnumerator DisablingDoesNotResetUserActions ( )
163
163
{
164
+ var actions = new DefaultInputActions ( ) ;
165
+ m_InputModule . actionsAsset = actions . asset ;
166
+ m_InputModule . cancel = InputActionReference . Create ( actions . UI . Cancel ) ;
167
+
164
168
m_InputModule . enabled = false ;
165
169
166
170
yield return null ;
167
171
168
172
Assert . IsNotNull ( m_InputModule . cancel , "Disabling component shouldn't lose its data." ) ;
173
+
174
+ actions . Dispose ( ) ;
169
175
}
170
176
171
177
public class PointerExitCallbackCheck : MonoBehaviour , IPointerExitHandler
You can’t perform that action at this time.
0 commit comments