Protobuf与Unity?

时间:2018-06-29 15:50:55

标签: c# .net unity3d

我提前道歉-我认为我对Unity,C#甚至Protobufs的经验不足,无法知道为什么这行不通。

我正在尝试使用此插件:https://github.com/5argon/protobuf-unity 我下载了官方的Google.Protobuf.Tools并链接到protoc.exe。当我将一个协议文件放入我的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脚本/资产\ Protobuf',CurrentDirectory =''   System.Diagnostics.Process.Start_noshell(System.Diagnostics.ProcessStartInfo startInfo,System.Diagnostics.Process进程)   System.Diagnostics.Process.Start_common(System.Diagnostics.ProcessStartInfo startInfo,System.Diagnostics.Process进程)   System.Diagnostics.Process.Start()   (包装器远程检查调用)System.Diagnostics.Process:Start()   ProtobufUnityCompiler.CompileProtobufSystemPath(System.String protoFileSystemPath,System.String [] includePaths)(位于Assets / Plugins / ProtobufUnityCompiler.cs:209)   ProtobufUnityCompiler.CompileAllInProject()(位于Assets / Plugins / ProtobufUnityCompiler.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绑定程序,System.Object []参数,System.Globalization.CultureInfo文化)(在/ Users / builduser / buildslave / mono / build / mcs / class / corlib / System.Reflection / MonoMethod.cs:222)   作为TargetInvocationException重新抛出:调用的目标已抛出异常。   System.Reflection.MonoMethod.Invoke(System.Object obj,BindingFlags invokeAttr,System.Reflection.Binder绑定程序,System.Object []参数,System.Globalization.CultureInfo文化)(在/ Users / builduser / buildslave / mono / build / mcs / class / corlib / System.Reflection / MonoMethod.cs:232)   System.Reflection.MethodBase.Invoke(System.Object obj,System.Object []参数)(位于/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)(位于C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:206)

我被卡住了,我不知道如何调试它。

0 个答案:

没有答案