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

Panto crashes when loading a new scene #68

Open
BennytheBomb opened this issue Jul 12, 2021 · 0 comments
Open

Panto crashes when loading a new scene #68

BennytheBomb opened this issue Jul 12, 2021 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@BennytheBomb
Copy link
Contributor

Problem

In Unity when running a panto application with an existing panto object and then loading a new scene, the connection crashes (heartbeat goes red).

Causes

This might be because the old panto object gets destroyed and the new panto object wants to establish connection and setup everything that already has been set up.

Suggestion

Mark the Panto game object with DontDestroyOnLoad which stops it from being destroyed when loading a new scene. You would also have to mark everything the panto object instantiated and make sure that every game object independent of it's scene or state can access the panto game object. This will probably cause (partially) a restructuring of the framework.

@BennytheBomb BennytheBomb added bug Something isn't working enhancement New feature or request labels Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant