Comments (6)
Currently, if I sign in multiple users, that seems to operate as expected. However, once I sign out one of the users, the UI elements from the UserProfile prefab do not change and eventually after several seconds, I get this error message:
Exception thrown: 'Microsoft.Xbox.Services.XboxException' in Microsoft.Xbox.Services.UWP.CSharp.dll
Exception thrown: 'Microsoft.Xbox.Services.XboxException' in System.Private.CoreLib.ni.dll
Exception thrown: 'System.AggregateException' in System.Private.CoreLib.ni.dll
Exception thrown: 'System.Threading.SynchronizationLockException' in System.Threading.dll
I have not yet been able to find the source.
from xbox-live-unity-plugin.
Hi Piecrustius,
Thanks for reporting this. We'll work on a fix for this bug and update you once the fix is out.
Thanks!
from xbox-live-unity-plugin.
@Piecrustius did you find a way to sign out the user in single person mode?
from xbox-live-unity-plugin.
DDReaper,
Nope. My objective is to have a local multiplayer game where users can sign in and out during a setup screen. The issue is probably related to a single user signing out.
Currently, I am working on a separate script based on the UserProfile.cs script to track up to 8 users. I think I have them signing in and I am turning to signing out, or at least recognizing when they are signing out and then resetting the user information to allow another sign in.
You can get feedback on a user sign out by adding a function to the XboxLiveUser.SignOutCompleted member. I did it this way, but I do not know if its the right way to do it:
static void UserSignedOut(object sender, SignOutCompletedEventArgs e)
{
Debug.Log("User signed Out: " + e.User.Gamertag);
}
Then add:
XboxLiveUser.SignOutCompleted += UserSignedOut;
to some initialization section, such as in the Start() function.
That is as far as I have gotten on handling a sign out. If I get further, I'll post the code. I should mention that I do not know what I am doing and am making it up as I go along.
Good luck.
from xbox-live-unity-plugin.
I did eventually find a way, but it involved using the gamebar to navigate to the Xbox App and then signing out there.
Looked through the code (as you likely have) and found no reference to a "SignOut" option.
If I get a chance, I might try adding another "sign-in" call and see if that replaces it.
from xbox-live-unity-plugin.
This issue is fixed in the 1711 release. If you are still seeing the issue after updating to that please reopen this issue.
from xbox-live-unity-plugin.
Related Issues (20)
- CreateSocialUserGroupFromList can return 0 users in the group
- 140.C.dll crashes on app exit and repo needs build settings update
- Missing namespaces. HOT 1
- Store Listing HOT 5
- Achievements HOT 1
- Roadmap for this plugin/Creator's Program? Possible to use this for 2018+ Unity, or wait for the new GDK? HOT 12
- Unable to build from source (.\Build\Setup.ps1) HOT 1
- Error when signing in test player on Xbox One HOT 1
- unity HOT 3
- DllNotFoundException: Unable to load DLL 'Microsoft.Xbox.Services.140.UWP.C.dll': The specified module could not be found. HOT 1
- Not showing on Unity 2020.1.3f1 HOT 2
- Seems Abandoned HOT 2
- Cbox
- compilation errors
- Compilation Errors HOT 1
- Major Issue, Please Fix! HOT 3
- Xbox Creator's Program store front
- it seems that :"XboxLive.unitypackage" No Support the unity3d.2019 now~~
- Unity wont find microsoft.xbox.services
- do NOT use this package for id@xbox features! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xbox-live-unity-plugin.