#unity/日常积累 可以先替换Asset/开头的路径; ![[Pasted image 20221021173848.png]] ``` cs string dirPath = Application.dataPath + m_PrefabDirLob + pathname.Replace("Assets/", "/"); if (!Directory.Exists(dirPath)) { Directory.CreateDirectory(dirPath); } ```