Search Issue Tracker
By Design
Votes
0
Found in
6000.0.22f1
Issue ID
UUM-83128
Regression
No
UI elements break when modifying something in the UI Builder while in the Play Mode
Reproduction steps:
1. Open the attached "repro_IN-84903" project
2. In the custom Editor overlay, press on the “Scene: …“ button and select “MapEditor“
3. Press on the button that's on the left of the Play Mode button (looks like a map split into three different vertical parts)
4. Select "Edit Sandbox.dfmap"
5. In the overlay of the opened game Scene, press on the button with the lightning or the question mark
6. Notice that the overlay appears without any issues and is functional
7. Open the "Assets/Darfall-ScenarioEditorUI/UIElements/Hierarchy/UXML_Hierarchy.uxml" Visual Tree Asset
8. In the Hierarchy, expand the "#Root" dropdown and select "#Content"
9. In the Inspector, under the "Inlined Styles", expand the "Background" and change the "Color" parameter to any other color
10. Go back to the Game view
11. Press on the button with the lighting or the question mark
Expected result: After pressing any button, information is displayed in the panel
Actual result: After pressing any button, no information is displayed in the panel
Reproducible with: 6000.0.22f1
Couldn't test with: 2021.3.45f1, 2022.3.49f1 - Not possible to launch the reproduction project on these versions due to unresolvable package and Script errors
Reproducible on: Windows 10 (22H2), macOS Sonoma 14.6.1 (user’s)
Not reproducible on: No other environments tested
Note: Not able to test if this reproduces in the Player due to time limitation and complexity of such a test
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
- Animation Clip with Legacy enabled does not play when Time.timeScale is set to 0 despite Update mode set to "Unscaled time"
- Rename is enabled on subfolder empty space - "Can't rename to empty name" warning
- SamplerState Property Missing Anisotropic Filtering
- Visual glitches when using Handles API
- The RGBA color values are inconsistent when comparing two identical colors set in the Inspector
Resolution Note:
This looks like an issue with Live Reload. For UIDocuments, Live Reload (when a UXML changes in the UI Builder or externally) works by calling the OnEnable() function again on it and any other MonoBehaviours on the same GameObject. If you initialize your UI in Start() or any other way besides OnEnable(), it will stop working after you make a change in the UI Builder.
Looking at the attached files, there's definitely something custom going on with how UIDocuments are initialized and operated. We don't have the capacity to investigate individual projects and inform on how to fix usage issues. If you still think there's a bug related to Live Reload, please submit a simpler use case that shows proper usage of Live Reload is indeed broken.