Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PluginImporter.SetExcludeFromAnyPlatform

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public method SetExcludeFromAnyPlatform(platformName: string, excludedFromAny: bool): void;
public void SetExcludeFromAnyPlatform(string platformName, bool excludedFromAny);
public method SetExcludeFromAnyPlatform(platform: BuildTarget, excludedFromAny: bool): void;
public void SetExcludeFromAnyPlatform(BuildTarget platform, bool excludedFromAny);

Parameters

platformNameTarget platform.

Description

Exclude platform from compatible platforms when Any Platform is set to true.

Useful when you want to apply logic - "plugin is compatible with any platform except this platform".

Note: PluginImporter.SetCompatibleWithPlatform or PluginImporter.SetCompatibleWithEditor will override this setting.

You can also use PluginImporter.GetImporters to check if your plugin is compatible or not compatbile with specific platform.

Did you find this page useful? Please give it a rating: