文档

Unity Engine

Unity Engine

SetExcludeFromAnyPlatform

Exclude platform from compatible platforms when Any Platform is set to true.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

SetExcludeFromAnyPlatform(string, bool)

Exclude platform from compatible platforms when Any Platform is set to true.
public void SetExcludeFromAnyPlatform(string platformName, bool excludedFromAny)

Parameters

platformName

Target platform.

excludedFromAny

Remarks

Useful when you want to apply logic - "plugin is compatible with any platform except this platform".
You can also use PluginImporter.GetImporters to check whether or not your plugin is compatible with specific platforms.

SetExcludeFromAnyPlatform(BuildTarget, bool)

Exclude platform from compatible platforms when Any Platform is set to true.
public void SetExcludeFromAnyPlatform(BuildTarget platform, bool excludedFromAny)

Parameters

platform


excludedFromAny

Remarks

Useful when you want to apply logic - "plugin is compatible with any platform except this platform".
You can also use PluginImporter.GetImporters to check whether or not your plugin is compatible with specific platforms.