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
- “FMOD failed to set the software format to the custom sample rate…” warnings are thrown as System Sample Rate value is being changed in Audio section of Project Settings window
- VFX Marquee selection does match the visual indicator
- “Invalid AABB aabb” errors are spammed when “Infinity” value is entered in Collider Component fields
- Editor Role does not sync with the MPPM Play Mode Scenario Role when entering Play mode
- Long asset names cause overlap with the “Find” function in search result tabs
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.