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 @@ -477,6 +477,11 @@ private static string GetInstallScript(){
477
477
}
478
478
479
479
public static int InstallMaxPlugin ( string maxExe ) {
480
+ if ( Application . platform != RuntimePlatform . WindowsEditor ) {
481
+ Debug . LogError ( "The 3DsMax Unity plugin is Windows only, please try installing a Maya plugin instead" ) ;
482
+ return - 1 ;
483
+ }
484
+
480
485
var installScript = GetInstallScript ( ) ;
481
486
482
487
int ExitCode = 0 ;
@@ -494,13 +499,8 @@ public static int InstallMaxPlugin(string maxExe){
494
499
myProcess . StartInfo . CreateNoWindow = true ;
495
500
myProcess . StartInfo . UseShellExecute = false ;
496
501
497
- #if UNITY_EDITOR_OSX
498
- throw new NotImplementedException ( ) ;
499
- #elif UNITY_EDITOR_LINUX
500
- throw new NotImplementedException ( ) ;
501
- #else // UNITY_EDITOR_WINDOWS
502
502
myProcess . StartInfo . Arguments = string . Format ( "-q -silent -mxs \" {0}\" " , installScript ) ;
503
- #endif
503
+
504
504
myProcess . EnableRaisingEvents = true ;
505
505
myProcess . Start ( ) ;
506
506
myProcess . WaitForExit ( ) ;
You can’t perform that action at this time.
0 commit comments