我提前道歉 - 我认为我在Unity,C#甚至Protobufs中都没有足够的经验知道为什么这不起作用 .

我正在尝试使用这个插件:https://github.com/5argon/protobuf-unity我下载了官方的Google.Protobuf.Tools并链接到protoc.exe . 当我将一个protoc文件放入我的Unity项目并尝试编译它时,弹出一个错误说:

Win32Exception:ApplicationName ='C:\ Users \ Brian \ Desktop \ RealProjects \ Robot Script \ Packages \ Google.Protobuf.Tools.3.6.0 \ tools \ windows_x64',CommandLine ='“C:/ Users / Brian / Desktop / RealProjects / Robot Script / Assets \ Protobuf \ test.proto“--csharp_out C:/ Users / Brian / Desktop / RealProjects / Robot Script / Assets \ Protobuf --proto_path C:/ Users / Brian / Desktop / RealProjects / Robot Script / Assets \ Protobuf',CurrentDirectory =''System.Diagnostics.Process.Start_noshell(System.Diagnostics.ProcessStartInfo startInfo,System.Diagnostics.Process process)System.Diagnostics.Process.Start_common(System.Diagnostics.ProcessStartInfo startInfo,System.Diagnostics . Process process)System.Diagnostics.Process.Start()(wrapper remoting-invoke-with-check)System.Diagnostics.Process:Start()ProtobufUnityCompiler.CompileProtobufSystemPath(System.String protoFileSystemPath,System.String [] includePaths)(at Assets) /Plugins/ProtobufUnityCompiler.cs:209)ProtobufUnityCompiler.CompileAllInProject()(在Assets / Plugins / Prot) obufUnityCompiler.cs:172)ProtobufUnityCompiler.PreferencesItem()(在Assets / Plugins / ProtobufUnityCompiler.cs:90)UnityEditor.PreferencesWindow.OnGUI()(在C:/buildslave/unity/build/Editor/Mono/PreferencesWindow/PreferencesWindow.cs :373)System.Reflection.MonoMethod.Invoke(System.Object obj,BindingFlags invokeAttr,System.Reflection.Binder binder,System.Object [] parameters,System.Globalization.CultureInfo culture)(at / Users / builduser / buildslave / mono /build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)Rethrow as TargetInvocationException:调用目标抛出了异常 . System.Reflection.MonoMethod.Invoke(System.Object obj,BindingFlags invokeAttr,System.Reflection.Binder binder,System.Object [] parameters,System.Globalization.CultureInfo culture)(at / Users / builduser / buildslave / mono / build / mcs / class / corlib / System.Reflection / MonoMethod.cs:232)System.Reflection.MethodBase.Invoke(System.Object obj,System.Object [] parameters)(at / Users / builduser / buildslave / mono / build / mcs /class/corlib/System.Reflection/MethodBase.cs:115)UnityEditor.HostView.Invoke(System.String methodName,System.Object obj)(在C:/buildslave/unity/build/Editor/Mono/HostView.cs: 291)UnityEditor.HostView.Invoke(System.String methodName)(在C:/buildslave/unity/build/Editor/Mono/HostView.cs:284)UnityEditor.HostView.OldOnGUI()(在C:/ buildslave / unity /) build / Editor / Mono / HostView.cs:103)UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI(UnityEngine.Event evt)(at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:206)

我被卡住了,我不知道如何调试这个 .