@@ -96,10 +96,12 @@ static void SetPlatformSettings() {
9696 didUpdate |= ResetPluginSettings ( plugin , "x86_64" , "Linux" ) ;
9797 didUpdate |= SetCompatibleWithLinux ( plugin , BuildTarget . StandaloneLinux64 ) ;
9898 }
99+ #if ! UNITY_2019_2_OR_NEWER
99100 else {
100101 didUpdate |= ResetPluginSettings ( plugin , "x86" , "Linux" ) ;
101102 didUpdate |= SetCompatibleWithLinux ( plugin , BuildTarget . StandaloneLinux ) ;
102103 }
104+ #endif
103105 break ;
104106 case "steam_api.dll" :
105107 case "steam_api64.dll" :
@@ -170,9 +172,11 @@ static bool SetCompatibleWithOSX(PluginImporter plugin) {
170172 didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneOSXUniversal , true ) ;
171173#endif
172174
175+ #if ! UNITY_2019_2_OR_NEWER
173176 didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneLinux , false ) ;
174- didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneLinux64 , false ) ;
175177 didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneLinuxUniversal , false ) ;
178+ #endif
179+ didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneLinux64 , false ) ;
176180 didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneWindows , false ) ;
177181 didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneWindows64 , false ) ;
178182
@@ -182,6 +186,7 @@ static bool SetCompatibleWithOSX(PluginImporter plugin) {
182186 static bool SetCompatibleWithLinux ( PluginImporter plugin , BuildTarget platform ) {
183187 bool didUpdate = false ;
184188
189+ #if ! UNITY_2019_2_OR_NEWER
185190 if ( platform == BuildTarget . StandaloneLinux ) {
186191 didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneLinux , true ) ;
187192 didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneLinux64 , false ) ;
@@ -191,6 +196,9 @@ static bool SetCompatibleWithLinux(PluginImporter plugin, BuildTarget platform)
191196 didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneLinux64 , true ) ;
192197 }
193198 didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneLinuxUniversal , true ) ;
199+ #else
200+ didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneLinux64 , true ) ;
201+ #endif
194202
195203#if UNITY_2017_3_OR_NEWER
196204 didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneOSX , false ) ;
@@ -217,9 +225,11 @@ static bool SetCompatibleWithWindows(PluginImporter plugin, BuildTarget platform
217225 didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneWindows64 , true ) ;
218226 }
219227
220- didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneLinux64 , false ) ;
228+ #if ! UNITY_2019_2_OR_NEWER
221229 didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneLinux , false ) ;
222230 didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneLinuxUniversal , false ) ;
231+ #endif
232+ didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneLinux64 , false ) ;
223233#if UNITY_2017_3_OR_NEWER
224234 didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneOSX , false ) ;
225235#else
@@ -234,9 +244,11 @@ static bool SetCompatibleWithWindows(PluginImporter plugin, BuildTarget platform
234244 static bool SetCompatibleWithEditor ( PluginImporter plugin ) {
235245 bool didUpdate = false ;
236246
237- didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneLinux64 , false ) ;
247+ #if ! UNITY_2019_2_OR_NEWER
238248 didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneLinux , false ) ;
239249 didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneLinuxUniversal , false ) ;
250+ #endif
251+ didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneLinux64 , false ) ;
240252#if UNITY_2017_3_OR_NEWER
241253 didUpdate |= SetCompatibleWithPlatform ( plugin , BuildTarget . StandaloneOSX , false ) ;
242254#else
0 commit comments