问题描述
我正在 Unity 中测试 InteractiveConsole 示例.我按照官方教程中的描述做了一些配置.经过一些设置后,我进入了第 7 步:运行我们的示例代码.
I'm testing the InteractiveConsole example in Unity. I did some configurations as described in the official tutorial.After some setups I got on step 7: Run our example code.
但是,我收到以下错误:
However, I'm receiving the following errors:
无法验证装配数据;您必须提供授权密钥加载此程序集时.UnityEngine.Security:LoadAndVerifyAssembly(Byte[])c__Iterator1:MoveNext()(在资产/Facebook/Scripts/FB.cs:326)
无法安全地从https://integrated-plugin-canvas-rsrc.fbsbx.com/rsrc/unity/lib/sdk_4.0/CanvasFacebook.dllUnityEngine.Debug:LogError(Object) FbDebug:Error(String)c__Iterator1:MoveNext()(在资产/Facebook/Scripts/FB.cs:329)
Could not securely load assembly from https://integrated-plugin-canvas-rsrc.fbsbx.com/rsrc/unity/lib/sdk_4.0/CanvasFacebook.dll UnityEngine.Debug:LogError(Object) FbDebug:Error(String) c__Iterator1:MoveNext() (at Assets/Facebook/Scripts/FB.cs:329)
不知道该怎么办.有什么想法吗?
Not sure what to do. Any ideas?
推荐答案
不要像@BrianJew 建议的那样更改对 LoadAndVerifyAssembly 的调用,您只需更改 FB.cs 的第 381 行,它说
Instead of change the call to LoadAndVerifyAssembly as @BrianJew suggests, you simply can change the line 381 of FB.cs, where it says
#if UNITY_4_5
你应该把
#if UNITY_4_5 || UNITY_4_6
或者适合您的 Unity 版本的标志.在那个块中,密钥是从这个 URL 获得的 https://Integrated-plugin-canvas-rsrc.fbsbx.com/rsrc/unity/key/sdk_5.1/AuthToken.unityhash
Or the appropiate flag for your Unity's version. In that block the key is obtained from this URL https://integrated-plugin-canvas-rsrc.fbsbx.com/rsrc/unity/key/sdk_5.1/AuthToken.unityhash
这篇关于无法验证装配数据;加载此程序集时必须提供授权密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!