我正在测试新的Creator's Program Unity插件,当我在本地机器上运行SignInAndProfile示例场景时,它让我正确登录。但是,如果我尝试在我的Xbox One上部署它,开发控制台会给我以下错误:
Warning: unknown type TaskYieldInstruction`1[Microsoft.Xbox.Services.SignInResult] detected. Using reflection to gather its type information. Consider to reference it from your scripts so it can gathered during the build process.
(Filename: C:\buildslave\unity\build\Runtime/Scripting/Backend/DotNet/ScriptingTypeProvider_DotNet.cpp Line: 153)
Exception thrown: 'System.Exception' in Assembly-CSharp.dll
Exception: Sign in Failed. Status: UserInteractionRequired
at XboxLive.<SignInAsync>d__15.MoveNext()
at UnityEngine.SetupCoroutine.InvokeMoveNext(IEnumerator enumerator, IntPtr returnValueAddress)
at UnityEngine.SetupCoroutine.$Invoke1InvokeMoveNext(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
(Filename: <Unknown> Line: 0)我似乎找不到任何关于该状态消息的含义。
提前谢谢。
发布于 2017-03-04 06:20:27
如果你从RequestTokenSilentAsync得到一个错误,那么你应该用RequestTokenAsync再试一次,它会弹出任何解决方案UI。也就是说,我想先问一下:您是否已将控制台切换到正确的沙箱?我猜这可能是你的问题所在。
https://stackoverflow.com/questions/42586752
复制相似问题