Skip to content

Commit 0f3501f

Browse files
committed
check if headless install before installing UI
1 parent d1088c1 commit 0f3501f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Assets/Integrations/Autodesk/mayalt/scripts/setupUnityUI.mel

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ global string $kExportLabel = "Export Model to Unity";
1313

1414

1515
global proc setupUnityUI(){
16+
17+
$isHeadless = `optionVar -q "UnityFbxForMaya_Headless"`;
18+
if($isHeadless){
19+
// headless install, don't add UI
20+
return;
21+
}
22+
1623
evalDeferred -lowestPriority "buildFileMenu; \
1724
$parentMenu = $gMainFileMenu; \
1825
$pluginVersion = whatsNewVersion(); \

0 commit comments

Comments
 (0)