public static string[] GetUserDataList(string extension) { #if UNITY_XBOXONE && !UNITY_EDITOR return(XboxOneConnectedStorage.GetListOfBlobNamesThatMatchExtension(extension).ToArray()); #elif UNITY_PS4 && !UNITY_EDITOR return(PS4Manager.GetFileList(extension)); #else return(Directory.GetFiles(persistentDataPath, "*" + extension)); #endif }