收藏
回答

请问unity转小游戏时报错这个是什么原因?

UnauthorizedAccessException: Access to the path '28d7a1c2d4a31358ce984cd097595801bb1f1f' is denied.

WeChatWASM.UnityUtil.DelectDir (System.String srcPath) (at <69446df40a594a0886b6e5212c03cd99>:0)

WeChatWASM.WXConvertCore.ConvertCode () (at Assets/WX-WASM-SDK-V2/Editor/WXConvertCore.cs:162)

WeChatWASM.WXConvertCore.DoExport (System.Boolean buildWebGL) (at Assets/WX-WASM-SDK-V2/Editor/WXConvertCore.cs:109)

WeChatWASM.WXEditorWin.OnGUI () (at Assets/WX-WASM-SDK-V2/Editor/WXEditorWindow.cs:255)

UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <e1260bad0dfe422c9735668714a7bba0>:0)

UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <e1260bad0dfe422c9735668714a7bba0>:0)

UnityEditor.DockArea.OldOnGUI () (at <e1260bad0dfe422c9735668714a7bba0>: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 <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.EventDispatcher.OpenGate () (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <0a6a5b8090e84f2ba4872cc16f0ca6dd>:0)

UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <d6700adc591c452f81c03ffaeaedaaf0>:0)

回答关注问题邀请回答
收藏

2 个回答

  • 9
    9
    02-29

    删除原来的Build目录里边老的内容,重新生成即可,应该是目录权限问题.

    02-29
    有用 1
    回复 1
    • 寒江孤影
      寒江孤影
      11-25
      解决了
      11-25
      回复
  • 碳十四
    碳十四
    2023-11-23

    你好,请问这个问题后续解决了吗?

    2023-11-23
    有用
    回复
登录 后发表内容