Version: 2021.3

PluginImporter.SetExcludeFromAnyPlatform

切换到手册
public void SetExcludeFromAnyPlatform (string platformName, bool excludedFromAny);
public void SetExcludeFromAnyPlatform (BuildTarget platform, bool excludedFromAny);

参数

platformName 目标平台。

描述

任何平台设置为 true 时,从兼容的平台中排除平台。

当您要应用“插件与除此平台之外的任何平台兼容”这一逻辑时会用到。

注意:PluginImporter.SetCompatibleWithPlatformPluginImporter.SetCompatibleWithEditor 会重载此设置。

You can also use PluginImporter.GetImporters to check whether or not your plugin is compatible with specific platforms.