Skip to content
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

I can't Load a scene through SceneManager when I use the Async Parse Method #364

Open
Kellokes opened this issue Feb 10, 2022 · 0 comments

Comments

@Kellokes
Copy link

New Issue Checklist

Issue Description

I can't Load a scene through SceneManager when I use the Async Parse Method, like SingUpAsync().

Steps to reproduce

This is the function that I'm trying to execute when I register an user:

public void Register(string Username ,string Email, string Password){
        
        var user = new ParseUser()
        {
            Username = Username,
            Password = Password,
            Email = Email
        };

        user.SignUpAsync().ContinueWith(t =>
        {   

            if (t.IsFaulted || t.IsCanceled)
            {
            Debug.Log("We weren't able to register you, try again!");
            }
            else
            {   
                Debug.Log("Account created!");
                SceneManager.LoadScene("Login");
                //registered = true;
                
            }

        });

    }

Actual Outcome

The scene doesn't load, but the Debug.Log("Account created!") appears on console.

Expected Outcome

I expect the scene Login appears after I received the response of SignUpAsync method.

Environment

Logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants