IsPlatformIncluded(string, int)
[Editor Only] Returns if the given platform is included by the Quality Level.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static bool IsPlatformIncluded(string buildTargetGroupName, int index)
Parameters
Returns
Type | Description |
|---|---|
| bool | If the platform is included. |
Examples
public bool IsPlatformIcluded(BuildTarget platform, int index){ var activeBuildTargetGroup = BuildPipeline.GetBuildTargetGroup(platform); var namedBuildTarget = NamedBuildTarget.FromBuildTargetGroup(activeBuildTargetGroup); return QualitySettings.IsPlatformIncluded(namedBuildTarget.TargetName, index);}