Documentation

Unity Engine

Download Unity

Unity Engine

GetExcludeFromAnyPlatform

Checks whether a platform, identified by name, is excluded when the plug-in is compatible with any platform.
Read time 1 minuteLast updated 22 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

GetExcludeFromAnyPlatform(string)

Checks whether a platform, identified by name, is excluded when the plug-in is compatible with any platform.
public bool GetExcludeFromAnyPlatform(string platformName)

Parameters

platformName

The name of the target platform.

Returns

Type

Description

boolTrue if the platform is excluded. Otherwise, false.

Remarks

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.

GetExcludeFromAnyPlatform(BuildTarget)

Checks whether a build target is excluded when the plug-in is compatible with any platform.
public bool GetExcludeFromAnyPlatform(BuildTarget platform)

Parameters

platform

The target platform.

Returns

Type

Description

boolTrue if the platform is excluded. Otherwise, false.

Remarks

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.