ドキュメント

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.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.