How to reproduce:
1. Open the “DynamicDataOnBuildIssue” project
2. In the Project window select the “Roboto-Black SDF” Asset
3. In the Inspector under the Generation Settings enable the "Clear Dynamic Data On Build" option
4. In the warning select “Apply”
5. Observe the Inspector
How to reproduce in a new project:
1. Create a new project with any template
2. Use one of the attached fonts
3. Import the font into the project
4. In the Project window right-click on the imported font and create a new TextMeshPro Font Asset (Create > TextMeshPro > Font Asset)
5. In the Inspector under the Generation Settings enable the "Clear Dynamic Data On Build" option
6. In the warning select “Apply”
7. Observe the Inspector
Expected result: The "Clear Dynamic Data On Build" option is checked and no errors are thrown to the Console
Actual result: The "Clear Dynamic Data On Build" option remains unchecked and errors are thrown to the Console
Reproduced with: 2021.3.32f1, 2022.3.13f1, 2023.1.20f1, 2023.2.0a13
Not reproduced with: 2023.2.0f1, 2023.3.0a14
Fixed in: 2023.2.0a14
Reproduced on: Windows 10 (by reporter), Windows 11
Not reproducible on: No other environment tested
Notes:
1. In the 2023.2 and 2023.3 streams the context menu was slightly changed and now is Create > TextMeshPro > FontAsset > SDF. Additionally, TMP Essentials must be imported before creating SDF Assets
2. Importing TMP Essentials does not fix the issue in affected streams
3. With the “DynamicDataOnBuildIssue” project in 2023.2 and 2023.3 streams selecting the "Clear Dynamic Data On Build" option throws an error
4. “Multi Atlas Textures” option is affected in the same way as "Clear Dynamic Data On Build" option