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

Unity is not reattached on iOS with multiple UnityWidget #768

Closed
Ortes opened this issue Feb 15, 2023 · 3 comments
Closed

Unity is not reattached on iOS with multiple UnityWidget #768

Ortes opened this issue Feb 15, 2023 · 3 comments

Comments

@Ortes
Copy link
Contributor

Ortes commented Feb 15, 2023

It seems like dispose() in FLTUnityWidgetController is never called on iOS. This prevent the last UnityWidget to be reattached when multiple UnityWidget are in the tree.

Push multiples UnityWidget in the navigator (tested with GoRouter)
Pop one time
The UnityWidget does not get attached anymore

The UnityView should be reattached to the last UnityWidget

Can you check this out @juicycleff ?

@Ortes
Copy link
Contributor Author

Ortes commented Feb 16, 2023

Fixed in #769

@Ortes Ortes closed this as completed Feb 16, 2023
@timbotimbo
Copy link
Collaborator

Is this only in the feat/global_unity_controller branch?
I ran into the same while testing that on iOS, but not on master.

@Ortes
Copy link
Contributor Author

Ortes commented Feb 17, 2023

Yes indeed

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

No branches or pull requests

2 participants