File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -439,6 +439,11 @@ private static string GetInstallScript(){
439
439
}
440
440
441
441
public static int InstallMaxPlugin ( ) {
442
+ if ( Application . platform != RuntimePlatform . WindowsEditor ) {
443
+ Debug . LogError ( "The 3DsMax Unity plugin is Windows only, please try installing a Maya plugin instead" ) ;
444
+ return - 1 ;
445
+ }
446
+
442
447
var maxExe = GetMaxExe ( ) ;
443
448
var installScript = GetInstallScript ( ) ;
444
449
@@ -457,13 +462,8 @@ public static int InstallMaxPlugin(){
457
462
myProcess . StartInfo . CreateNoWindow = true ;
458
463
myProcess . StartInfo . UseShellExecute = false ;
459
464
460
- #if UNITY_EDITOR_OSX
461
- throw new NotImplementedException ( ) ;
462
- #elif UNITY_EDITOR_LINUX
463
- throw new NotImplementedException ( ) ;
464
- #else // UNITY_EDITOR_WINDOWS
465
465
myProcess . StartInfo . Arguments = string . Format ( "-q -silent -mxs \" {0}\" " , installScript ) ;
466
- #endif
466
+
467
467
myProcess . EnableRaisingEvents = true ;
468
468
myProcess . Start ( ) ;
469
469
myProcess . WaitForExit ( ) ;
You can’t perform that action at this time.
0 commit comments