📜  unity 获取项目文件目录 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:56.941000             🧑  作者: Mango

代码示例1
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);
    }