I was running a pipeline to check if all the TextMeshProUGUI components are properly set to the correct fontAsset and fontMaterial. And noticed this issue.
How did you run into this?
Accessing the fontMaterial property will result in the creation of an instanced material. So this might be why you end up with some error in the event this instanced material is destroyed since it is not persistent.
To access the persistent material, use fontSharedMaterial.
I figured. Thanks for the quick response