[LayaAir3]LayaAir3.0UnityPlugin 导出出错

在unity2022中使用导出插件出错
GUI Error: Invalid GUILayout state in LayaAir3D view. Verify that all layout Begin/End calls match
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) 
MissingReferenceException: The object of type 'SkinnedMeshRenderer' 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.
MeshUitls.writeSkinnerMesh (UnityEngine.SkinnedMeshRenderer skinnedMeshRenderer, System.String meshName, System.IO.FileStream fs, System.Int32 MaxBoneCount) (at ./Library/PackageCache/com.layaair.export-tool@0665d13336/Editor/Export/utils/MeshUitls.cs:397)
MeshFile.SaveFile (System.Collections.Generic.Dictionary`2[TKey,TValue] exportFiles) (at ./Library/PackageCache/com.layaair.export-tool@0665d13336/Editor/Export/filter/MeshFile.cs:32)
ResoureMap.SaveAllFile () (at ./Library/PackageCache/com.layaair.export-tool@0665d13336/Editor/Export/resoure/ResoureMap.cs:129)
HierarchyFile.saveAllFile (System.Boolean isScene) (at ./Library/PackageCache/com.layaair.export-tool@0665d13336/Editor/Export/filter/HierarchyFile.cs:112)
LayaAir3Export.ExportScene () (at ./Library/PackageCache/com.layaair.export-tool@0665d13336/Editor/Export/LayaAir3Export.cs:14)
LayaAir3D.OnGUI () (at ./Library/PackageCache/com.layaair.export-tool@0665d13336/Editor/Export/LayaAir3D.cs:220)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <5e6ebaa7d75c4d5399dc81ecead6b43f>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <5e6ebaa7d75c4d5399dc81ecead6b43f>:0)
UnityEditor.DockArea.OldOnGUI () (at <5e6ebaa7d75c4d5399dc81ecead6b43f>: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 <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.IMGUIContainer.ProcessEvent (UnityEngine.UIElements.EventBase evt) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase evt) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <383db090fd544f24b368fd389016a28f>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <d26551307ee24906965335845380d4a1>:0)
 
已邀请:

要回复问题请先

商务合作
商务合作