@@ -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";
@@ -32,6 +33,11 @@ global proc unitySetupUI(){
32
33
evalDeferred -lowestPriority "unityInstallUI";
33
34
}
34
35
36
+ global proc unitySetLabelVersion(string $label){
37
+ global string $unityPluginVersion;
38
+ return `format -stringArg $label -stringArg $unityPluginVersion "^1s (v.^2s)"`;
39
+ }
40
+
35
41
global proc unityInstallUI(){
36
42
global string $unityMenuName;
37
43
global string $unityMenuDivider;
@@ -42,6 +48,7 @@ global proc unityInstallUI(){
42
48
global string $unityExportIconPath;
43
49
global string $unityIconPath;
44
50
51
+ global string $unityPluginVersion;
45
52
global string $unityFamilyLabel;
46
53
global string $unityImportLabel;
47
54
global string $unityExportLabel;
@@ -53,7 +60,12 @@ global proc unityInstallUI(){
53
60
global string $unityExportCommand;
54
61
55
62
global string $gMainFileMenu;
56
-
63
+
64
+ // update family label
65
+ $unityFamilyLabel = unitySetLabelVersion($unityFamilyLabel);
66
+ $unityImportLabel = unitySetLabelVersion($unityImportLabel);
67
+ $unityExportLabel = unitySetLabelVersion($unityExportLabel);
68
+
57
69
buildFileMenu;
58
70
$parentMenu = $gMainFileMenu;
59
71
$pluginVersion = unityWhatsNewVersion();
0 commit comments