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
Remarks
Useful when you want to apply logic - "plugin is compatible with any platform except this platform".
Note: PluginImporter.SetCompatibleWithPlatform or PluginImporter.SetCompatibleWithEditor will override this setting.
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
Remarks
Useful when you want to apply logic - "plugin is compatible with any platform except this platform".
Note: PluginImporter.SetCompatibleWithPlatform or PluginImporter.SetCompatibleWithEditor will override this setting.
You can also use PluginImporter.GetImporters to check whether or not your plugin is compatible with specific platforms.