Search Issue Tracker

Duplicate

Votes

2

Found in

2018.2.14f1

2018.3.0b3

2018.3.0b10

2019.1.0a1

Issue ID

1102124

Regression

Yes

Script with the [AddComponentMenu] flag remains in the 'Add Component' context menu after deleting it from the Assets folder

Scripting

-

How to reproduce:
1. Open tester-submitted project (AddComponentMenu)
2. Select any GameObject
3. Select 'Add Component' and notice that 'A Simple Script' appears in the context menu
4. Delete the 'AddComponent.cs' script from the Assets folder
5. Open the 'Add Component' context menu again

Expected result: 'A Simple Script' no longer appears in the context menu
Actual result: 'A Simple Script' still shows up in the context menu

Reproducible with: 2018.2.14f1, 2018.2.19f2, 2018.3.0b3, 2018.3.0f1, 2019.1.0a11
Not reproducible with: 2017.4.16f1, 2018.2.13f1, 2018.3.0b2

Notes:
Reimporting all assets or restarting the project fixes this issue

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.