Search Issue Tracker
Won't Fix
Votes
0
Found in
2021.3.21f1
2022.2.11f1
2023.1.0b8
2023.2.0a6
Issue ID
UUM-30268
Regression
No
Changing AdditionalFile of Code Generator does not immediatelly trigger recompilation
Reproduction steps:
1. Open the attached project “UITKProject”
2. Double-click on the “Assets/mainui.uxml” file to open the UI Builder window
3. In the UI Builder Hierarchy window find the “title333” object and rename it to any other name
4. Press Ctrl + S or Cmd + S to save the change
5. Focus on another program and then refocus on Unity editor
Expected result: Unity starts recompilation after step 4
Actual result: Unity starts recompilation after being refocused
Reproducible with: 2021.3.21f1, 2022.2.11f1, 2023.1.0b8, 2023.2.0a6
Couldn’t test with: 2020.3.46f1 - Errors in user scripts
Reproducible on: macOS 13.1 (Intel), Windows 10
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
- [HDRP] HDAdditionalLightData.RequestSubShadowMapRendering on directional lights breaks cascade shadows rendering
- Memory leaks when Instantiating Objects with SerializeReference
- Currently selected Action Map switches to the first Action Map in the list and it's first Action when editing the Binding Path of a newly created Action
- "F" default focusing Unity shortcut zooms out when the first time focusing the GameObject
- DropdownField options added with PointerDownEvent are not shown when clicking the DropddownField for the first time
Resolution Note:
From the UI Builder perspective, this works as intended. The UI Builder is not responsible of generating code, therefore it cannot trigger compilation.
From the AssetDatabase perspective, this also works as intended since compilation only happens when Refresh is called or when there are focus changes.
The solution for this issue is to call AssetDatabase.Refresh after the code generation happens in the user code.