Hello,
I've recently begun a new project, and I have run into a frustrating issue with the Unity Editor UI. Various text labels just seem to break, resulting in them not rendering. This is most notable in the inspector window, but is not excluded to it. I've attached a screenshot of the issue.
As this happens, numerous errors are logged in the console, including, but not limited to, this:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.UIElements.UIR.MeshGenerator.DrawText (System.Collections.Generic.List`1[T] vertices, System.Collections.Generic.List`1[T] indices, System.Collections.Generic.List`1[T] atlases, System.Collections.Generic.List`1[T] renderModes, System.Collections.Generic.List`1[T] sdfScales) (at <b2858548e25c4db4bad82249a9cb7b34>:0)
UnityEngine.UIElements.UIR.MeshGenerator.DrawText (System.Collections.Generic.List`1[T] vertices, System.Collections.Generic.List`1[T] indices, System.Collections.Generic.List`1[T] materials, System.Collections.Generic.List`1[T] renderModes) (at <b2858548e25c4db4bad82249a9cb7b34>:0)
UnityEngine.UIElements.UITKTextJobSystem.AddDrawEntries (UnityEngine.UIElements.MeshGenerationContext mgc, System.Object _) (at <b2858548e25c4db4bad82249a9cb7b34>:0)
UnityEngine.UIElements.UIR.MeshGenerationDeferrer.Invoke (UnityEngine.UIElements.UIR.MeshGenerationDeferrer+CallbackInfo ci, UnityEngine.UIElements.MeshGenerationContext mgc) (at <b2858548e25c4db4bad82249a9cb7b34>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
I am on Unity 6.0, 6000.0.58f1, LTS version. I initially made the project in an earlier version (2022.3.8f1), but migrated. The issues began occuring after migration. Sorry if this is a known issue, but I've been searching around and couldn't find any mention of it. This is a new project, with no custom editor UI code. Restarting the editor very briefly resolves the issue, but it reappears almost instantly when the UI is updated.