Search Issue Tracker
Fixed in 2021.1.X
Votes
0
Found in
2019.4
2019.4.15f1
2020.3
Issue ID
1347061
Regression
No
AddComponentMenu does not set custom name in Inspector when script is not added to a folder
Reproduction steps:
1. Open the attached project "AddComponentMenu.zip"
2. Open scene "Scene"
3. Select any GameObject in the hierarchy
4. Press "Add Component" and add the "Custom Script Name" component
Expected result: Component name matches the name provided in AddComponentMenu ("Custom Script Name")
Actual result: Component name defaults to the class name ("Add Component Menu Script")
Reproducible with: 2019.4.29f1, 2020.3.14f1
Not reproducible with: 2021.1.14f1, 2021.2.0b3
Could not test with: 2018.4.36f1 (name in Inspector is always class name)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
- Last segment of a Sprite Shape Spline is affected by other segments' Sprite Variant change when no edge Sprite is selected
- [iOS] Application frequently crashes on Social.LoadAchievements call when many achievements are registered
Resolution Note (fix version 2021.1):
Fixed in: 2021.1.0a1