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

When can I support Android? #5

Open
scc172fly opened this issue Jun 13, 2022 · 1 comment
Open

When can I support Android? #5

scc172fly opened this issue Jun 13, 2022 · 1 comment

Comments

@scc172fly
Copy link

Recently, the project happens to have this requirement, when can support the Android platform, very urgent need, but the Android platform can not directly use File Directory API, the work is not normal.

@sableangle
Copy link
Owner

I believe Android can use File API to load files in Application.persistentdatapath.
So the idea is, store your file in Application.streamingAssets, at the first App start, load all files in Application.streamingAssets using UnityWebRequrest and write all bytes to Application.persistentdatapath using File API.
After all those thing done, manual start the http server set the root path to Application.persistentdatapath, maybe should work.

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