Search Issue Tracker
By Design
Votes
0
Found in
6000.0.62f1
6000.2.11f1
6000.3.0b9
6000.4.0a4
6000.5.0a1
Issue ID
UUM-125651
Regression
No
csc.rsp -additionalfile files are not treated as dependencies and are not reloaded when the file contents change
How to reproduce:
1. Open the “TestAddFiles.zip“ project
2. Open the “SampleScene“
3. Enter Play Mode
4. Observe the Console ("001 - Hello from JSON" is logged)
5. Exit Play Mode
6. Open the “Assets/Localization/strings.jsont“ file and change the "001 - Hello from JSON" text to "001 - G'day from JSON"
7. Save the changes, and focus on the Editor
8. Enter Play Mode
9. Observe the Console
Expected result: "001 - G'day from JSON" is logged
Actual result: "001 - Hello from JSON" is logged again
Reproducible in: 2023.3.0a2, 6000.0.62f1, 6000.2.11f1, 6000.3.0b9, 6000.4.0a4
Could not test in: 2023.1.0a1 (Localization package features missing)
Reproduced on: Windows 11 Pro (24H2)
Not reproduced on: No other environment tested
Notes:
- This reproduction shows that csc.rsp -additionalfile files are not treated as dependencies, and do not cause domain reload
- Reimporting the “Demo.cs“ script before step 8 will yield expected results
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
- URP Realtime reflection probes do not update when RenderProbe() is being called once per second
- Addressable terrain shader variants are stripped from the Player
- [iOS] Debug.Log() appears as <private> in Console app
- UI stays in the background when it is disabled in simulator
- A wrong log file is attached when project is launched with a "-logFile" command line argument
Resolution Note:
We already support an "additionalfile" workflow with the Roslyn Analyzers. They are explained here in the manual: https://docs.unity3d.com/6000.4/Documentation/Manual/roslyn-analyzers-additional-files.html
I attached a modified version of the user-submitted project (including the generator) that leverages this mechanism (IN-122897_TestAddFiles-recommended.zip).
If you really want to track the additionaldependencies by using the csc.rsp file, you could try writing an asset post processor that reacts to imports of `strings.jsont`, but it is not the recommended approach.