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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.