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

PluginImporter.GetExcludeFromAnyPlatform

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 bool GetExcludeFromAnyPlatform(string platformName);

Parameters

Parameter Description
platformName The name of the target platform.

Returns

bool True if the platform is excluded. Otherwise, false.

Description

Checks 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. To exclude a platform, use PluginImporter.SetExcludeFromAnyPlatform.


Declaration

public bool GetExcludeFromAnyPlatform(BuildTarget platform);

Parameters

Parameter Description
platform The target platform.

Returns

bool True if the platform is excluded. Otherwise, false.

Description

Checks 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. To exclude a platform, use PluginImporter.SetExcludeFromAnyPlatform.