GetActiveQualityLevelsForPlatform(string)
[Editor Only] Obtains an array with the Quality Level indexes that are selected for the given platform.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static int[] GetActiveQualityLevelsForPlatform(string buildTargetGroupName)
Parameters
The platform target.
Returns
Type | Description |
|---|---|
| int[] | The array with the Quality Level indexes that are selected for the given platform. |
Remarks
public int[] GetActiveQualityLevelsForPlatform(BuildTarget platform){ var activeBuildTargetGroup = BuildPipeline.GetBuildTargetGroup(platform); var namedBuildTarget = NamedBuildTarget.FromBuildTargetGroup(activeBuildTargetGroup); return QualitySettings.GetActiveQualityLevelsForPlatform(namedBuildTarget.TargetName);}
Obtains the indexes that where a given platform is included.