Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Hey! I've been downloading models from VroidHub, load them after download, but couldn't figure out the file directory to load them again after restarting the game. Can you help me on this? Much appreciated.

string basePath = isAndroid ? "/sdcard/DanceMaker/" : Application.persistentDataPath + "/";
string path = basePath;
if (fileExt.Equals(".vrm"))
{
    path += "Avatar/";
}
else if (fileExt.Equals(".zip"))
{
    path += "GLTF/";
}
else
{
    path += "Others/";
}

Here is my path logic in code, So if you download a .vrm file from vroidhub using build-in browser, the download path should be:/sdcard/DanceMaker/Avatar/