Unity Issue Tracker - NullReferenceException and additional errors are thrown when Domain Reload is disabled and Dynamic Font in UI Toolkit is used
Fixed
UUM-75593
NullReferenceException and additional errors are thrown when Domain Reload is disabled and Dynamic Font in UI Toolkit is used
Unity: Text (TextCore)
Fixed
6.0.X
6000.0.0b12 onwards
Fixed issue with multi-atlas texture created at runtime.
Reproduction steps:
1. Open the attached “UITK-DynamicFontTest.zip” project
2. Open the “Test” scene
3. Enter the Play mode
4. Exit the Play mode
5. Enter the Play mode again
6. Observe the Console
Expected result: No errors are visible in the Console
Actual result: “NullReferenceException: Object reference not set to an instance of an object” and “InvalidOperationException: Begin can only be called when there is no target set. Did you forget to call End?” errors are thrown in the Console
Reproducible with: 6000.0.0b12, 6000.0.10f1
Not reproducible with: 2021.3.40f1, 2022.3.37f1, 6000.0.0b11
Reproducible on: macOS 14.5 (M2), Windows 11
Not reproducible on: no other environment tested
Note:
The "InvalidOperationException: Begin can only be called when there is no target set. Did you forget to call End?" error gets spammed even after exiting the Play mode
Prioritise and Follow this issue
Have a workaround or additional info about this issue?