Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetExcludeFromAnyPlatform

Exclude platform from compatible platforms when Any Platform is set to true.
Read time 1 minuteLast updated 4 days ago

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.