Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

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

Declaration

public void SetExcludeFromAnyPlatform(string platformName, bool excludedFromAny);

Parameters

Parameter Description
platformName The name of the target platform.
excludedFromAny Set to true to exclude the platform. Set to false to include it.

Description

Sets whether a platform, identified by name, is excluded when the plug-in is compatible with any platform.

When Any Platform is enabled for a plug-in, it's compatible with every platform except the ones you exclude. Use this method when a plug-in is compatible with every platform except a few. PluginImporter.SetCompatibleWithPlatform and PluginImporter.SetCompatibleWithEditor override this setting. To check which plug-ins are compatible with a platform, use PluginImporter.GetImporters.


Declaration

public void SetExcludeFromAnyPlatform(BuildTarget platform, bool excludedFromAny);

Parameters

Parameter Description
platform The target platform.
excludedFromAny Set to true to exclude the platform. Set to false to include it.

Description

Sets whether a build target is excluded when the plug-in is compatible with any platform.

When Any Platform is enabled for a plug-in, it's compatible with every platform except the ones you exclude. Use this method when a plug-in is compatible with every platform except a few. PluginImporter.SetCompatibleWithPlatform and PluginImporter.SetCompatibleWithEditor override this setting. To check which plug-ins are compatible with a platform, use PluginImporter.GetImporters.