Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行时删除BarChart后报错 #269

Closed
monitor1394 opened this issue Aug 2, 2023 Discussed in #268 · 0 comments
Closed

运行时删除BarChart后报错 #269

monitor1394 opened this issue Aug 2, 2023 Discussed in #268 · 0 comments
Labels
bug Something isn't working

Comments

@monitor1394
Copy link
Collaborator

Discussed in https://github.com/orgs/XCharts-Team/discussions/268

Originally posted by wmqKevin August 1, 2023
当我在运行时删除BarChart后报错如下:
MissingReferenceException: The object of type 'CanvasRenderer' 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.
at (wrapper managed-to-native) UnityEngine.CanvasRenderer.get_cull(UnityEngine.CanvasRenderer)
at UnityEngine.UI.GraphicRaycaster.Raycast (UnityEngine.Canvas canvas, UnityEngine.Camera eventCamera, UnityEngine.Vector2 pointerPosition, System.Collections.Generic.IList1[T] foundGraphics, System.Collections.Generic.List1[T] results) [0x00018] in G:\MZLU3D\Doctor-U_HDRP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\GraphicRaycaster.cs:335
at UnityEngine.UI.GraphicRaycaster.Raycast (UnityEngine.EventSystems.PointerEventData eventData, System.Collections.Generic.List1[T] resultAppendList) [0x00329] in G:\MZLU3D\Doctor-U_HDRP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\UI\Core\GraphicRaycaster.cs:236 at UnityEngine.EventSystems.EventSystem.RaycastAll (UnityEngine.EventSystems.PointerEventData eventData, System.Collections.Generic.List1[T] raycastResults) [0x0003f] in G:\MZLU3D\Doctor-U_HDRP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\EventSystem\EventSystem.cs:263
at UnityEngine.EventSystems.PointerInputModule.GetMousePointerEventData (System.Int32 id) [0x000a3] in G:\MZLU3D\Doctor-U_HDRP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\EventSystem\InputModules\PointerInputModule.cs:295
at UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent (System.Int32 id) [0x00001] in G:\MZLU3D\Doctor-U_HDRP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\EventSystem\InputModules\StandaloneInputModule.cs:540
at UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent () [0x00001] in G:\MZLU3D\Doctor-U_HDRP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\EventSystem\InputModules\StandaloneInputModule.cs:526
at UnityEngine.EventSystems.StandaloneInputModule.Process () [0x0003e] in G:\MZLU3D\Doctor-U_HDRP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\EventSystem\InputModules\StandaloneInputModule.cs:280
at UnityEngine.EventSystems.EventSystem.Update () [0x000f6] in G:\MZLU3D\Doctor-U_HDRP\Library\PackageCache\com.unity.ugui@1.0.0\Runtime\EventSystem\EventSystem.cs:501

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant