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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note (fix version 2021.1):
Fixed in: 2021.1.0a1