SetCompatibleWithPlatform
Sets whether the plug-in is compatible with a build target.
阅读时间1 分钟最后更新于 21 天前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
SetCompatibleWithPlatform(BuildTarget, bool)
Sets whether the plug-in is compatible with a build target.
public void SetCompatibleWithPlatform(BuildTarget platform, bool enable)
Parameters
The target platform.
Set to true to make the plug-in compatible with the platform. Set to false to make it incompatible.
Remarks
This setting overrides the exclusions that you set with PluginImporter.SetExcludeFromAnyPlatform.
SetCompatibleWithPlatform(string, bool)
Sets whether the plug-in is compatible with a platform, identified by name.
public void SetCompatibleWithPlatform(string platformName, bool enable)
Parameters
Remarks
This setting overrides the exclusions that you set with PluginImporter.SetExcludeFromAnyPlatform.