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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (fix version 2021.1):
Fixed in: 2021.1.0a1