-
Notifications
You must be signed in to change notification settings - Fork 560
feat: Added popup that tells users to set up project id if it's not set up [MTT-3265][MTT-3237] #607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Added popup that tells users to set up project id if it's not set up [MTT-3265][MTT-3237] #607
Conversation
Also adjusted the flow slightly - if there's no project id, we block away the lobby UI and prevent attempts to authenticate (they'd cause errors and nuisance popups)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we try to host a game through direct IP without the project id setup, it now gives us an exception and prevents us from doing so. Is that intentional or a bug? Should playing through direct IP still be allowed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This resolves MTT-3237, so I'll assign that one to you @pdeschain.
@@ -46,6 +45,15 @@ protected override void InitializeScope() | |||
[Inject] | |||
async void InjectDependenciesAndInitialize(AuthenticationServiceFacade authServiceFacade, LocalLobbyUser localUser, LocalLobby localLobby) | |||
{ | |||
#if UNITY_EDITOR | |||
if (string.IsNullOrEmpty(UnityEditor.CloudProjectSettings.projectId)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no way to check with Application.cloudProjectId? And this way it would work in builds too?
Description
I've added the popup that tells users to set up their project id. Also adjusted the flow slightly - if there's no project id, we block away the lobby UI and prevent attempts to authenticate (they'd cause errors and nuisance popups)
Issue Number(s)
MTT-3265
Contribution checklist