Answers for "unity get project file directory"

C#
3

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);
    }
Posted by: Guest on August-26-2020

Code answers related to "unity get project file directory"

C# Answers by Framework

Browse Popular Code Answers by Language