Version: 2018.1

PluginImporter.SetExcludeFromAnyPlatform

Switch to Manual
public void SetExcludeFromAnyPlatform (string platformName, bool excludedFromAny);
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.