- Home /
Unity what path plugins android for UnityWebRequest?
Hi, In Unity I have a file "stockfish-10-armv7.so" that is in Assets PlugIns Android. At runtime i wish to use UnityWebRequest to write it into the Application.persistentData. However I am having trouble finding the right path to use. I have tried:
string sfBin = "stockfish-10-armv7.so";
string sfPathAsset = Path.Combine("jar:file:///android_asset" , sfBin);
But the file is not found. Any ideas?
add the file to the strea$$anonymous$$g assets folder and find it there
yes I've done that already and it did work however when I then tried to use new process on result file i get technical problems see
https://answers.unity.com/questions/1758170/new-process-access-denied.html
I thought because in strea$$anonymous$$gAssets its just considered as a raw file and so i wanted to try using the file as a known plugin type.
Thank you for your time.
i have no idea if you can access the so file without beeing rooted, but so files are located in /data/app/com.Company.Product/lib/arm for testing porpuse i would suggest try to find the so file in a device, hardcode the path and see if you can access it