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 · 4 comments
Open

When can I support Android? #5

scc172fly opened this issue Jun 13, 2022 · 4 comments

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.

@Sugar0612
Copy link

请问支持WebGL平台吗

@sableangle
Copy link
Owner

WebGL 我想應該是不支援的

@Sugar0612
Copy link

WebGL 我想應該是不支援的

好的好的,感谢~

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

3 participants