You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Activity
sableangle commentedon Jun 13, 2022
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.streamingAssetsusing UnityWebRequrest and write all bytes toApplication.persistentdatapathusing File API.After all those thing done, manual start the http server set the root path to
Application.persistentdatapath, maybe should work.Sugar0612 commentedon Sep 24, 2024
请问支持WebGL平台吗
sableangle commentedon Sep 24, 2024
WebGL 我想應該是不支援的
Sugar0612 commentedon Sep 25, 2024
好的好的,感谢~