File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ public override void OnInspectorGUI() {
21
21
22
22
scrollPos = GUILayout . BeginScrollView ( scrollPos ) ;
23
23
24
+ var version = FbxExporters . Editor . ModelExporter . GetVersionFromReadme ( ) ;
25
+ if ( ! string . IsNullOrEmpty ( version ) ) {
26
+ GUILayout . Label ( "Version: " + version , EditorStyles . centeredGreyMiniLabel ) ;
27
+ EditorGUILayout . Space ( ) ;
28
+ }
29
+
24
30
exportSettings . weldVertices = EditorGUILayout . Toggle ( "Weld Vertices:" , exportSettings . weldVertices ) ;
25
31
exportSettings . embedTextures = EditorGUILayout . Toggle ( "Embed Textures:" , exportSettings . embedTextures ) ;
26
32
exportSettings . mayaCompatibleNames = EditorGUILayout . Toggle (
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public static ModelExporter Create ()
85
85
/// </summary>
86
86
const string UniqueNameFormat = "{0}_{1}" ;
87
87
88
- private string GetVersionFromReadme ( )
88
+ public static string GetVersionFromReadme ( )
89
89
{
90
90
if ( string . IsNullOrEmpty ( ReadmeRelativePath ) ) {
91
91
Debug . LogWarning ( "Missing relative path to README" ) ;
You can’t perform that action at this time.
0 commit comments