Get Project Path Unity C# Code Example


Example: unity get project file directory


void Start()
{
//Get the path of the Levels folder from Resources
string assetsFolderPath = Application.dataPath;
string levelFolder = AssetsFolderPath + "/Resources/Levels";

//Output the folder's data path to the console
Debug.Log("dataPath : " + levelFolder);
}

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable