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

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.