Skip to content

*使用的时候报这个错误,请教一下该怎么解决呢,谢谢! #3

Description

@782854386

ArgumentNullException: Value cannot be null.
Parameter name: source
System.Linq.Enumerable.Select[TSource,TResult] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] selector) (at <38fd8cc4ceb24efb87af1f67e58c6b72>:0)
TranslationPlugin.TranslationPlugin.Translate () (at Assets/TranslationPlugin/TranslationPlugin.cs:52)
TranslationPlugin.TranslationPlugin.OnGUI () (at Assets/TranslationPlugin/TranslationPlugin.cs:34)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <05f48515eeeb4a6db226ff4b8fe8a7c6>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <05f48515eeeb4a6db226ff4b8fe8a7c6>:0)
UnityEditor.DockArea.OldOnGUI () (at <05f48515eeeb4a6db226ff4b8fe8a7c6>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <2e387ccdb4aa48dcad3cbd482dcc76ea>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <2e387ccdb4aa48dcad3cbd482dcc76ea>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <2e387ccdb4aa48dcad3cbd482dcc76ea>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <2e387ccdb4aa48dcad3cbd482dcc76ea>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <2e387ccdb4aa48dcad3cbd482dcc76ea>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <2e387ccdb4aa48dcad3cbd482dcc76ea>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEventBubbleUp (UnityEngine.UIElements.EventBase evt) (at <2e387ccdb4aa48dcad3cbd482dcc76ea>:0)
UnityEngine.UIElements.EventDispatchUtilities.HandleEventAcrossPropagationPathWithCompatibilityEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.EventBase compatibilityEvt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target, System.Boolean isCapturingTarget) (at <2e387ccdb4aa48dcad3cbd482dcc76ea>:0)
UnityEngine.UIElements.EventDispatchUtilities.DispatchToCapturingElementOrElementUnderPointer (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, System.Int32 pointerId, UnityEngine.Vector2 position) (at <2e387ccdb4aa48dcad3cbd482dcc76ea>:0)
UnityEngine.UIElements.PointerEventBase`1[T].Dispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <2e387ccdb4aa48dcad3cbd482dcc76ea>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at <2e387ccdb4aa48dcad3cbd482dcc76ea>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <2e387ccdb4aa48dcad3cbd482dcc76ea>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <2e387ccdb4aa48dcad3cbd482dcc76ea>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <2e387ccdb4aa48dcad3cbd482dcc76ea>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <2e387ccdb4aa48dcad3cbd482dcc76ea>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <2e387ccdb4aa48dcad3cbd482dcc76ea>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <2e387ccdb4aa48dcad3cbd482dcc76ea>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at :0)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions