File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,9 @@ public void Actions_Reference_ShouldReevaluateIfAssociatedEntityIsDeleted(Type t
179
179
Assert . That ( reference . ToDisplayName ( ) , Is . EqualTo ( "map1/action1" ) ) ;
180
180
Assert . That ( reference . ToString ( ) , Is . EqualTo ( ":map1/action1" ) ) ;
181
181
182
- // Delete the referenced action directly or indirectly
182
+ // Remove the referenced action directly or indirectly. Note that this doesn't destroy an action or action map
183
+ // since they are regular reference types. However, an InputActionReference is based on asset an and action ID
184
+ // So if a map is removed from an asset but remains valid in memory it is no longer a valid reference.
183
185
if ( typeToDelete == typeof ( InputAction ) )
184
186
asset . RemoveAction ( "map1/action1" ) ;
185
187
else if ( typeToDelete == typeof ( InputActionMap ) )
You can’t perform that action at this time.
0 commit comments