Skip to content

Commit 5f38b4e

Browse files
authored
Merge pull request #106 from Unity-Technologies/UNI-23684-version-number-in-settings
UNI-23684 show version number in export settings
2 parents 050d492 + beb4937 commit 5f38b4e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Assets/FbxExporters/Editor/FbxExportSettings.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ public override void OnInspectorGUI() {
2121

2222
scrollPos = GUILayout.BeginScrollView (scrollPos);
2323

24+
var version = FbxExporters.Editor.ModelExporter.GetVersionFromReadme ();
25+
if (!string.IsNullOrEmpty(version)) {
26+
GUILayout.Label ("Version: " + version, EditorStyles.centeredGreyMiniLabel);
27+
EditorGUILayout.Space ();
28+
}
29+
2430
exportSettings.weldVertices = EditorGUILayout.Toggle ("Weld Vertices:", exportSettings.weldVertices);
2531
exportSettings.embedTextures = EditorGUILayout.Toggle ("Embed Textures:", exportSettings.embedTextures);
2632
exportSettings.mayaCompatibleNames = EditorGUILayout.Toggle (

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public static ModelExporter Create ()
8585
/// </summary>
8686
const string UniqueNameFormat = "{0}_{1}";
8787

88-
private string GetVersionFromReadme()
88+
public static string GetVersionFromReadme()
8989
{
9090
if (string.IsNullOrEmpty (ReadmeRelativePath)) {
9191
Debug.LogWarning ("Missing relative path to README");

0 commit comments

Comments
 (0)