@@ -7,6 +7,7 @@ global string $unityImportIconPath = "import.png";
7
7
global string $unityExportIconPath = "export.png";
8
8
global string $unityIconPath = "unity.png";
9
9
10
+ global string $unityPluginVersion = "{Version}";
10
11
global string $unityFamilyLabel = "The UnityFbxForMaya plugin allows you to reliably exchange and review your work between Maya and Unity.";
11
12
global string $unityImportLabel = "Import an FBX file from a Unity project and auto-configure for exporting";
12
13
global string $unityExportLabel = "Export Model to Unity";
@@ -35,6 +36,11 @@ global proc unitySetupUI(){
35
36
evalDeferred -lowestPriority "unityInstallUI";
36
37
}
37
38
39
+ global proc string unitySetLabelVersion(string $label){
40
+ global string $unityPluginVersion;
41
+ return `format -stringArg $label -stringArg $unityPluginVersion "^1s (v.^2s)"`;
42
+ }
43
+
38
44
global proc unityInstallUI(){
39
45
global string $unityMenuName;
40
46
global string $unityMenuDivider;
@@ -45,6 +51,7 @@ global proc unityInstallUI(){
45
51
global string $unityExportIconPath;
46
52
global string $unityIconPath;
47
53
54
+ global string $unityPluginVersion;
48
55
global string $unityFamilyLabel;
49
56
global string $unityImportLabel;
50
57
global string $unityExportLabel;
@@ -58,7 +65,10 @@ global proc unityInstallUI(){
58
65
global string $unitySendToUnityMenuName;
59
66
60
67
global string $gMainFileMenu;
61
-
68
+
69
+ // update family label with version
70
+ $unityFamilyLabel = unitySetLabelVersion($unityFamilyLabel);
71
+
62
72
buildFileMenu;
63
73
$parentMenu = $gMainFileMenu;
64
74
$pluginVersion = unityWhatsNewVersion();
0 commit comments