Fixed Debug.Assert warning when atlas would grow too big for an editor font.
Reproduction steps:
1. Create a new project
2. Make sure you have at least one of the experimental language modules installed in the Unity Hub
3. Change the language to one of the downloaded experimental languages (doesn’t matter if it’s Chinese or Japanese) inside the settings (File > Preferences > Languages > Editor Language) and restart the Editor
4. Open the "Assets/SampleScene.unity"
5. Select GameObjects one by one in the Hierarchy
6. Observe the Console
Expected result: No errors are present
Actual result: “Assertion failed on expression: '!(o->TestHideFlag(Object::kDontSaveInEditor) && (options & kAllowDontSaveObjectsToBePersistent) == 0)'“ error is present
Reproducible with: 6000.0.18f1, 6000.0.23f1
Not reproducible with: 2022.3.50f1, 6000.0.17f1
Couldn’t test with: 2021.3.45f1 (wasn’t able to download experimental languages)
Reproducible on: Windows 11 (User’s platform), M1 Max MacOS 14.6.1
Not reproducible on: No other environment tested
Notes:
The issue is reproducible on HDRP, URP and built-in pipeline
The issue is also reproducible when outputting a lot of Chinese/Japanese texts by Debug.Log even if the Editor Language is not set
Prioritise and Follow this issue
Have a workaround or additional info about this issue?