Skip to content

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

Open
@Kellokes

Description

@Kellokes

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions