将脚本后端从 IL2CPP 更改为 .NET Unity(适用于最新版本的 Vuforia)
Change Scripting Backend from IL2CPP to .NET Unity (for the latest version of Vuforia)
我需要将我的项目表格 2017.2 更新到 2017.3 以适应新的 Vuforia 版本(因为新的模型目标)。播放器仍然可以正常工作。但是如果我想为 Hololens 构建一个 UWP 应用程序。我收到错误,脚本后端不正确(使用 IL2CPP)。
Vuforia currently does not support the IL2CPP scripting backend for Windows Store Apps. Please select ".NET" as the scripting backend in the "Other Settings" section of the Player Settings
UnityEngine.Debug:LogError(Object)
BuildObserver:OnPreprocessBuild(BuildTarget, String)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
所以我在设置里改成了.NET。但是现在错误是,构建路径是为 IL2CPP 创建的。
UnityException: Build path contains project built with IL2CPP scripting backend, while current project is using .NET scripting backend.
PostProcessWinRT.CheckSafeProjectOverwrite () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:303)
PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:127)
UnityEditor.WSA.BuildPostprocessor.DoPostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:117)
UnityEditor.WSA.BuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:124)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
那我现在该怎么办?我可以更改路径吗?
这些是我的原始设置:
出现此错误是因为 Unity 无法将两个不同脚本后端的输出写入同一位置。您可以通过删除使用 IL2CPP 脚本后端生成的输出目录或为 .NET 后端创建新的输出目录来解决此问题。
我需要将我的项目表格 2017.2 更新到 2017.3 以适应新的 Vuforia 版本(因为新的模型目标)。播放器仍然可以正常工作。但是如果我想为 Hololens 构建一个 UWP 应用程序。我收到错误,脚本后端不正确(使用 IL2CPP)。
Vuforia currently does not support the IL2CPP scripting backend for Windows Store Apps. Please select ".NET" as the scripting backend in the "Other Settings" section of the Player Settings
UnityEngine.Debug:LogError(Object)
BuildObserver:OnPreprocessBuild(BuildTarget, String)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
所以我在设置里改成了.NET。但是现在错误是,构建路径是为 IL2CPP 创建的。
UnityException: Build path contains project built with IL2CPP scripting backend, while current project is using .NET scripting backend.
PostProcessWinRT.CheckSafeProjectOverwrite () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:303)
PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:127)
UnityEditor.WSA.BuildPostprocessor.DoPostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:117)
UnityEditor.WSA.BuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:124)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
那我现在该怎么办?我可以更改路径吗?
这些是我的原始设置:
出现此错误是因为 Unity 无法将两个不同脚本后端的输出写入同一位置。您可以通过删除使用 IL2CPP 脚本后端生成的输出目录或为 .NET 后端创建新的输出目录来解决此问题。