文档

Unity Engine

Unity Engine

GetExcludeFromAnyPlatform

Checks whether a platform, identified by name, is excluded when the plug-in is compatible with any platform.
阅读时间1 分钟最后更新于 21 天前

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.