Documentation

Unity Engine

Unity Engine

GetCompatibleWithPlatform

Checks whether the plug-in is compatible with a build target.
Read time 1 minuteLast updated 21 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

GetCompatibleWithPlatform(BuildTarget)

Checks whether the plug-in is compatible with a build target.
public bool GetCompatibleWithPlatform(BuildTarget platform)

Parameters

platform

The target platform.

Returns

Type

Description

boolTrue if the plug-in is compatible with the platform. Otherwise, false.

Remarks

To check a platform by name, use the overload that takes
platformName
.

GetCompatibleWithPlatform(string)

Checks whether the plug-in is compatible with a platform, identified by name.
public bool GetCompatibleWithPlatform(string platformName)

Parameters

platformName

The name of the target platform.

Returns

Type

Description

boolTrue if the plug-in is compatible with the platform. Otherwise, false.

Remarks

Use this overload when you have the name of the platform rather than a BuildTarget.