Search Issue Tracker
Fixed
Votes
0
Found in [Package]
1.3.3
Issue ID
MTTB-1102
Regression
No
Lack of character limit when naming new Scenario in Play Mode Scenarios window causes Editor errors with long names
Steps to reproduce:
1. Create new unity project
2. Make sure Multiplayer Play Mode package is installed
3. Open “Play Mode Scenarios” window (Window > Multiplayer > Play Mode Scenarios)
4. In the Play Mode Scenarios window toolbar, select the ( + ) icon to create a new scenario.
5. Give a new, long name for a newly created Scenario (for example: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur)
\\
Actual results: pop-up is thrown “Moving file failed” and errors are thrown in the Console
Expected results: No editor errors, enforce a reasonable character limit when naming a new Scenario.
\\
Reproducible with versions: 1.3.3 (6000.0.43f1), 1.4.0 (6000.0.0b11, 6000.2.0a7)
Can’t test with versions: 2022.3.60f1
\\
Tested on (OS): Apple M1 Max, Sequoia 15.2
\\
Errors:
{code:java}
Failed to move file from "Temp/assetCreatePath" to "Assets/Settings/PlayMode/Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur..asset"
UnityEditor.AssetDatabase:CreateAsset (UnityEngine.Object,string)
Unity.Multiplayer.PlayMode.Configurations.Editor.PlayModeConfigUtils:CreatePlayModeConfig (string,System.Type) (at ./Library/PackageCache/com.unity.multiplayer.playmode@5a1f3b990b6d/Configurations/Editor/PlayModeConfigUtils.cs:62)
Unity.Multiplayer.PlayMode.Configurations.Editor.Gui.PlayModeListView:<.ctor>b__6_0 (string) (at ./Library/PackageCache/com.unity.multiplayer.playmode@5a1f3b990b6d/Configurations/Editor/GUI/PlayModeScenariosWindow/PlayModeListView.cs:43)
Unity.Multiplayer.PlayMode.Configurations.Editor.Gui.LabelWithIcon:DisableEditMode (bool) (at ./Library/PackageCache/com.unity.multiplayer.playmode@5a1f3b990b6d/Configurations/Editor/GUI/PlayModeScenariosWindow/LabelWithIcon.cs:133)
Unity.Multiplayer.PlayMode.Configurations.Editor.Gui.LabelWithIcon:OnTextFieldFocusOut (UnityEngine.UIElements.BlurEvent) (at ./Library/PackageCache/com.unity.multiplayer.playmode@5a1f3b990b6d/Configurations/Editor/GUI/PlayModeScenariosWindow/LabelWithIcon.cs:138)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
{code}
{code:java}
UnityException: Creating asset at path Assets/Settings/PlayMode/Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur..asset failed.
UnityEditor.AssetDatabase.CreateAsset (UnityEngine.Object asset, System.String path) (at <30d243950da44be8bd28d9c077b5abdf>:0)
Unity.Multiplayer.PlayMode.Configurations.Editor.PlayModeConfigUtils.CreatePlayModeConfig (System.String name, System.Type type) (at ./Library/PackageCache/com.unity.multiplayer.playmode@5a1f3b990b6d/Configurations/Editor/PlayModeConfigUtils.cs:62)
Unity.Multiplayer.PlayMode.Configurations.Editor.Gui.PlayModeListView.<.ctor>b__6_0 (System.String s) (at ./Library/PackageCache/com.unity.multiplayer.playmode@5a1f3b990b6d/Configurations/Editor/GUI/PlayModeScenariosWindow/PlayModeListView.cs:43)
Unity.Multiplayer.PlayMode.Configurations.Editor.Gui.LabelWithIcon.DisableEditMode (System.Boolean cancel) (at ./Library/PackageCache/com.unity.multiplayer.playmode@5a1f3b990b6d/Configurations/Editor/GUI/PlayModeScenariosWindow/LabelWithIcon.cs:133)
Unity.Multiplayer.PlayMode.Configurations.Editor.Gui.LabelWithIcon.OnTextFieldFocusOut (UnityEngine.UIElements.BlurEvent evt) (at ./Library/PackageCache/com.unity.multiplayer.playmode@5a1f3b990b6d/Configurations/Editor/GUI/PlayModeScenariosWindow/LabelWithIcon.cs:138)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventCallback.cs:64)
UnityEngine.UIElements.EventCallbackRegistry+DynamicCallbackList.Invoke (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventCallbackRegistry.cs:246)
UnityEngine.UIElements.EventDispatchUtilities.HandleEvent_BubbleUpCallbacks (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement element) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Events/EventDispatchUtilities.cs:384)
{code}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- LocalizationSettings.InitializationOperation hangs when re-entering Play Mode with Domain Reload disabled
- [UI Toolkit] Delete key deletes the incorrect character and allows for an extra character deletion when language direction is set to RTL
- Dropdown property is cut off and adds unnecessary side padding when a Sub Graph is used as a node in Shader Graph
- All text in the Project Settings Window is still Tinted White after deleting Text in the Search Window
- "WebGL Template" icons disappear when building the project with the Project Settings opened
Add comment