This is most likely a Unity-specific issue, but I figured I'd troubleshoot it here in case anyone's come across the same problem.
I recently updated my project to Unity 2022.3.20f1 (alongside the Adventure Creator 1.81.6 and Dialogue System 2.2.47 updates) and it's a pretty sizable jump in versions. I've managed to get just about everything working just fine, but my Dialogue Manager and Dialogue UI template are having some problems.
My Dialogue UI uses both Unity Text and TMP; the former for the Response Panel and the latter for all lines accumulated in the Scroll Content object. Unity Text works fine, but after updating all versions, the dialogue in the accumulating box is blank and I get this error message:
Code: Select all
MissingComponentException: There is no 'CanvasRenderer' attached to the "TMP UI SubObject [FiraSans-Regular SDF Material]" game object, but a script is trying to access it.
You probably need to add a CanvasRenderer to the game object "TMP UI SubObject [FiraSans-Regular SDF Material]". Or your script needs to check if the component is attached before using it.
TMPro.TMP_SubMeshUI.UpdateMaterial () (at <eb02583e0506474e930bf2dac9e69d51>:0)
TMPro.TMP_SubMeshUI.SetMaterialDirty () (at <eb02583e0506474e930bf2dac9e69d51>:0)
UnityEngine.UI.MaskableGraphic.OnDisable () (at ./Library/PackageCache/com.unity.ugui@1.0.0/Runtime/UI/Core/MaskableGraphic.cs:185)
TMPro.TMP_SubMeshUI.OnDisable () (at <eb02583e0506474e930bf2dac9e69d51>:0)