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

unload unity on unmount #16

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

unload unity on unmount #16

wants to merge 1 commit into from

Conversation

rakirox
Copy link

@rakirox rakirox commented Aug 12, 2020

Adds optional boolean prop unloadOnUnmount to UnityView which unloads all unity scenes but not game preparation. this is an optimization for the next run of your game which will be faster. And releases all scenes' memory.

Also, it expose unloadPlayer so you can manually decide when to unload all scenes.

Notes:

  • iOS solution is pending, but I'm drafting this PR so any one can use it and recommend any solution.
  • Update usage docs are pending

@TruAmbition
Copy link

Hey @rakirox, I hope this finds you well. Thank you so much for jumping in and taking this on. I would like to ask, did you ever get around to solving this for iOS? I'm having a heck of a time trying to maneuver the best way I can within unity to unload assets, GC but still can't clear ~500MB of men post Unity scene runtime.

please advise,

  • Truman

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

Successfully merging this pull request may close these issues.

None yet

2 participants