从设备上的unity项目中删除临时文件。

问题描述 投票:0回答:1

问题是,我关闭了unity编辑器,而它正在将文件传输到我的设备(安卓三星S9)。 这在设备上留下了一组临时文件,我无法删除,因为我不知道如何访问它们。 这些临时文件在unity编辑器中导致以下错误。

    IOException: Failed to Copy File / Directory from 'C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/AndroidPlayer\Data\unity default resources' to 'Temp/StagingArea/Data\unity default resources': destination path already exists.
UnityEditor.FileUtil.CopyFileOrDirectory (System.String source, System.String dest) (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
UnityEditor.Android.PostProcessor.Tasks.PrepareUnityResources.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3167064085404657b0d6c498207da025>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3167064085404657b0d6c498207da025>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <3167064085404657b0d6c498207da025>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <3167064085404657b0d6c498207da025>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

我如何删除这些临时文件,以便我可以用unity使用我的设备?

unity3d temp
1个回答
0
投票

原来,临时文件夹是在项目文件夹内,而不是设备上。 通过重启unity,我成功地让它编译并安装在手机上。

© www.soinside.com 2019 - 2024. All rights reserved.