0

我正在测试新的 Creator 的 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)

我似乎无法找到有关该状态消息的含义的任何信息。

提前致谢。

4

1 回答 1

0

如果您从 RequestTokenSilentAsync 收到错误,那么您应该使用 RequestTokenAsync 再次尝试,这将显示任何分辨率 UI。也就是说,我想先问:您是否将控制台切换到正确的沙箱?我猜这可能是你的问题。

于 2017-03-03T22:20:26.693 回答