📜  统一桌面路径 - 任何代码示例

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

代码示例1
string startingPath = default;
#if UNITY_EDITOR
            startingPath = Application.dataPath + "/Resources/";
#else
            startingPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop);
#endif