Search Issue Tracker
Won't Fix
Won't Fix in 2023.2.X
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
- Build fails when building a project containing an 18+ dimension array with IL2CPP
- [Android][Sentis] Human poses are not detected when using the BlazePose model
- Sprite Editor Outline Tool Overlay is not displayed when no Sprite is selected
- “No method with RuntimeInitializeOnLoadMethod attribute” warning from ReadmeEditor.cs is thrown after installing Project Auditor Rules
- Projection matrix is altered when using RasterCommandBuffer.ClearRenderTarget on DX12 and Metal
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.
Resolution Note (2023.2.X):
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.