Skip to content

Commit f7767a1

Browse files
committed
use unicode char for forward slash
1 parent 0217c59 commit f7767a1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,8 +956,11 @@ public static string[] GetRelativeSavePaths(List<string> exportSavePaths){
956956
exportSavePaths.Add (kDefaultSavePath);
957957
}
958958
string[] relSavePaths = new string[exportSavePaths.Count];
959+
// use special forward slash unicode char as "/" is a special character
960+
// that affects the dropdown layout.
961+
string forwardslash = "\u2044";
959962
for (int i = 0; i < relSavePaths.Length; i++) {
960-
relSavePaths [i] = string.Format("Assets\\{0}", exportSavePaths[i] == "."? "" : NormalizePath(exportSavePaths [i], isRelative: true).Replace("/", "\\"));
963+
relSavePaths [i] = string.Format("Assets {0} {1}", forwardslash, exportSavePaths[i] == "."? "" : NormalizePath(exportSavePaths [i], isRelative: true).Replace("/", "\\"));
961964
}
962965
return relSavePaths;
963966
}

0 commit comments

Comments
 (0)