File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Packages/com.unity.inputsystem/InputSystem/Editor/PropertyDrawers Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,15 @@ static void ValidatePropertyWithDanglingInputActionReferences(SerializedProperty
33
33
{
34
34
if ( property ? . objectReferenceValue is InputActionReference reference )
35
35
{
36
- var action = reference ? . asset ? . FindAction ( reference . action . id ) ;
37
- if ( action is null )
36
+ // Check only if the reference is a project-wide action.
37
+ if ( reference ? . asset ? . name == ProjectWideActionsAsset . kAssetName )
38
38
{
39
- property . objectReferenceValue = null ;
40
- property . serializedObject . ApplyModifiedProperties ( ) ;
39
+ var action = reference ? . asset ? . FindAction ( reference . action . id ) ;
40
+ if ( action is null )
41
+ {
42
+ property . objectReferenceValue = null ;
43
+ property . serializedObject . ApplyModifiedProperties ( ) ;
44
+ }
41
45
}
42
46
}
43
47
}
You can’t perform that action at this time.
0 commit comments