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
The target platform.
Returns
Type | Description |
|---|---|
| bool | True if the plug-in is compatible with the platform. Otherwise, false. |
Remarks
To check a platform by name, use the overload that takes .
platformNameGetCompatibleWithPlatform(string)
Checks whether the plug-in is compatible with a platform, identified by name.
public bool GetCompatibleWithPlatform(string platformName)
Parameters
The name of the target platform.
Returns
Type | Description |
|---|---|
| bool | True 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.