유니티에서 게임화면을 클릭하면 저게 계속 뜨는데 어떻게해결해야하나요?




MissingReferenceException: The object of type 'TextMeshProUGUI' has been destroyed but you are still trying to access it.

Your script should either check if it is null or you should not destroy the object.

UnityEngine.Component.GetComponent[T] () (at <f1212ad1dec44ce7b7147976b91869c3>:0)

UnityEngine.UI.Graphic.get_canvasRenderer () (at Library/PackageCache/[email protected]/Runtime/UI/Core/Graphic.cs:444)

UnityEngine.UI.GraphicRaycaster.Raycast (UnityEngine.Canvas canvas, UnityEngine.Camera eventCamera, UnityEngine.Vector2 pointerPosition, System.Collections.Generic.IList`1[T] foundGraphics, System.Collections.Generic.List`1[T] results) (at Library/PackageCache/[email protected]/Runtime/UI/Core/GraphicRaycaster.cs:335)

UnityEngine.UI.GraphicRaycaster.Raycast (UnityEngine.EventSystems.PointerEventData eventData, System.Collections.Generic.List`1[T] resultAppendList) (at Library/PackageCache/[email protected]/Runtime/UI/Core/GraphicRaycaster.cs:236)

UnityEngine.EventSystems.EventSystem.RaycastAll (UnityEngine.EventSystems.PointerEventData eventData, System.Collections.Generic.List`1[T] raycastResults) (at Library/PackageCache/[email protected]/Runtime/EventSystem/EventSystem.cs:263)

UnityEngine.EventSystems.PointerInputModule.GetMousePointerEventData (System.Int32 id) (at Library/PackageCache/[email protected]/Runtime/EventSystem/InputModules/PointerInputModule.cs:295)

UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent (System.Int32 id) (at Library/PackageCache/[email protected]/Runtime/EventSystem/InputModules/StandaloneInputModule.cs:540)

UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent () (at Library/PackageCache/[email protected]/Runtime/EventSystem/InputModules/StandaloneInputModule.cs:526)

UnityEngine.EventSystems.StandaloneInputModule.Process () (at Library/PackageCache/[email protected]/Runtime/EventSystem/InputModules/StandaloneInputModule.cs:280)

UnityEngine.EventSystems.EventSystem.Update () (at Library/PackageCache/[email protected]/Runtime/EventSystem/EventSystem.cs:501)