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
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.