private static bool AddUnitySOPath(List <string> soFileNameList) { if (soFileNameList == null) { return(false); } string unityEditorPath = AssetBundleMgr.GetUnityEditorPath(); if (string.IsNullOrEmpty(unityEditorPath)) { if (m_IsDebugLog) { Debug.LogError("请增加UnityEditor环境变量Path"); } return(false); } #if UNITY_EDITOR_WIN string dirPath = string.Format("{0}/Data/PlaybackEngines/AndroidPlayer/Variations/mono/Release/Symbols/armeabi-v7a", unityEditorPath); if (Directory.Exists(dirPath)) { string[] soFiles = Directory.GetFiles(dirPath, "*.so", SearchOption.AllDirectories); for (int i = 0; i < soFiles.Length; ++i) { string fileName = soFiles[i]; soFiles[i] = fileName.Replace('\\', '/'); } soFileNameList.AddRange(soFiles); } dirPath = string.Format("{0}/Data/PlaybackEngines/AndroidPlayer/Variations/mono/Release/Symbols/x86", unityEditorPath); if (Directory.Exists(dirPath)) { string[] soFiles = Directory.GetFiles(dirPath, "*.so", SearchOption.AllDirectories); for (int i = 0; i < soFiles.Length; ++i) { string fileName = soFiles[i]; soFiles[i] = fileName.Replace('\\', '/'); } soFileNameList.AddRange(soFiles); } #elif UNITY_EDITOR_OSX // 暂时不支持 return(false); #else return(false); #endif return(true); }