文档

Unity Engine

Unity Engine

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

platform

The target platform.

enable

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

platformName

The name of the target platform.

enable

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.