Skip to content

Commit e63f3d4

Browse files
committed
move version to front of tooltip
replace directly in tooltip instead of a separate variable
1 parent 3673725 commit e63f3d4

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Assets/Integrations/Autodesk/maya/scripts/unitySetupUI.mel

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ global string $unityImportIconPath = "import.png";
77
global string $unityExportIconPath = "export.png";
88
global string $unityIconPath = "unity.png";
99

10-
global string $unityPluginVersion = "{Version}";
11-
global string $unityFamilyLabel = "The UnityFbxForMaya plugin allows you to reliably exchange and review your work between Maya and Unity.";
10+
global string $unityFamilyLabel = "The UnityFbxForMaya plugin (v.{Version}) allows you to reliably exchange and review your work between Maya and Unity.";
1211
global string $unityImportLabel = "Import an FBX file from a Unity project and auto-configure for exporting";
1312
global string $unityExportLabel = "Export Model to Unity";
1413

@@ -36,11 +35,6 @@ global proc unitySetupUI(){
3635
evalDeferred -lowestPriority "unityInstallUI";
3736
}
3837

39-
global proc string unitySetLabelVersion(string $label){
40-
global string $unityPluginVersion;
41-
return `format -stringArg $label -stringArg $unityPluginVersion "^1s (v.^2s)"`;
42-
}
43-
4438
global proc unityInstallUI(){
4539
global string $unityMenuName;
4640
global string $unityMenuDivider;
@@ -66,9 +60,6 @@ global proc unityInstallUI(){
6660

6761
global string $gMainFileMenu;
6862

69-
// update family label with version
70-
$unityFamilyLabel = unitySetLabelVersion($unityFamilyLabel);
71-
7263
buildFileMenu;
7364
$parentMenu = $gMainFileMenu;
7465
$pluginVersion = unityWhatsNewVersion();

0 commit comments

Comments
 (0)