Search Issue Tracker
Fixed
Votes
0
Found in
5.3.4f1
Issue ID
787983
Regression
No
[MenuItem]New menu item with very long name is broken
Steps to reproduce:
1. Create a new project.
2. Create a new script inside of "Assets" folder and name it "Test".
3. Copy-paste these lines of code to the script and save it:
using UnityEngine;
using UnityEditor;
public class Test : MonoBehaviour
{
[MenuItem ("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/Do Something")]
static void DoSomething ()
{
Debug.Log ("Doing Something...");
}
}
4. Notice the first bug: in the main menu there are visible several new unnamed menu items instead of one.
5. Click on one of them and select "Do Something" option.
6. Notice the second bug: after clicking on that option "Unity Bug Reporter" window appears.
(if you cannot reproduce it at first, try repeating the fifth step several times with different new menu items).
7. Re-import assets ("Assets->"Reimport All") or open the project again.
8. Notice that the sixth step is not reproducible anymore.
9. Delete script named "Test".
10. Notice the third bug: the main menu is not updated and new menu items are still visible.
(you have to repeat the seventh step to make it disappear).
Expected result:
New menu item with very long name should be visible as one item. Clicking on it should not invoke "Unity Bug Reporter". After deleting it, the main menu should be updated and this new menu item should disappear automatically.
Reproduced with:
5.1.0f3, 5.2.4f1, 5.3.4f1, 5.3.4p3, 5.4.0b14.
(This bug is not reproducible with new menu item that has a short name).
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
Add comment