Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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);
    }
 
PREVIOUS NEXT
Tagged: #unity #project #file #directory
ADD COMMENT
Topic
Name
1+5 =